aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorAndre Delfino <adelfino@gmail.com>2020-09-15 17:13:26 -0300
committerGitHub <noreply@github.com>2020-09-15 21:13:26 +0100
commitac0333e1e117b7f61ed7ef1dbcdb6e515ada603b (patch)
tree778d25829c59eb1c2c2b8e1461b50b87ba9ee900 /Tools
parentminor reformat of enum tests (GH-22259) (diff)
downloadcpython-ac0333e1e117b7f61ed7ef1dbcdb6e515ada603b.tar.gz
cpython-ac0333e1e117b7f61ed7ef1dbcdb6e515ada603b.tar.bz2
cpython-ac0333e1e117b7f61ed7ef1dbcdb6e515ada603b.zip
Fix all Python Cookbook links (#22205)
Diffstat (limited to 'Tools')
-rw-r--r--Tools/peg_generator/pegen/sccutils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/peg_generator/pegen/sccutils.py b/Tools/peg_generator/pegen/sccutils.py
index 1f0586bb2f..0c29519660 100644
--- a/Tools/peg_generator/pegen/sccutils.py
+++ b/Tools/peg_generator/pegen/sccutils.py
@@ -18,7 +18,7 @@ def strongly_connected_components(
exactly once; vertices not part of a SCC are returned as
singleton sets.
- From http://code.activestate.com/recipes/578507/.
+ From https://github.com/ActiveState/code/tree/master/recipes/Python/578507_Strongly_connected_components_directed/recipe-578507.py.
"""
identified: Set[str] = set()
stack: List[str] = []
@@ -81,7 +81,7 @@ def topsort(
{B, C}
{A}
- From http://code.activestate.com/recipes/577413/.
+ From https://github.com/ActiveState/code/tree/master/recipes/Python/577413_Topological_Sort/recipe-577413.py.
"""
# TODO: Use a faster algorithm?
for k, v in data.items():