Fix all Python Cookbook links (#22205)

diff --git a/Lib/heapq.py b/Lib/heapq.py
index fabefd8..5895562 100644
--- a/Lib/heapq.py
+++ b/Lib/heapq.py
@@ -456,7 +456,7 @@
 # 2) Made multiple passes over the data.
 # 3) Made more comparisons in common cases (small k, large n, semi-random input).
 # See the more detailed comparison of approach at:
-# http://code.activestate.com/recipes/577573-compare-algorithms-for-heapqsmallest
+# https://github.com/ActiveState/code/tree/master/recipes/Python/577573_Compare_algorithms/recipe-577573.py
 
 def nsmallest(n, iterable, key=None):
     """Find the n smallest elements in a dataset.