summaryrefslogtreecommitdiffstats
path: root/Tools/peg_generator/pegen/sccutils.py
diff options
context:
space:
mode:
authorAndre Delfino <adelfino@gmail.com>2020-09-27 00:47:25 (GMT)
committerGitHub <noreply@github.com>2020-09-27 00:47:25 (GMT)
commite8a2076e149703ea043db5a9dfaaf8d9b7f37c3e (patch)
tree2da32fc742c4e214b622fed2eb4a98180759766b /Tools/peg_generator/pegen/sccutils.py
parent2afd1751dd9a35d4ec03b708e3e5cddd72c43f7e (diff)
downloadcpython-e8a2076e149703ea043db5a9dfaaf8d9b7f37c3e.zip
cpython-e8a2076e149703ea043db5a9dfaaf8d9b7f37c3e.tar.gz
cpython-e8a2076e149703ea043db5a9dfaaf8d9b7f37c3e.tar.bz2
Revert "Fix all Python Cookbook links (#22205)" (GH-22424)
This commit reverts commit ac0333e1e117b7f61ed7ef1dbcdb6e515ada603b as the original links are working again and they provide extended features such as comments and alternative versions.
Diffstat (limited to 'Tools/peg_generator/pegen/sccutils.py')
-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 0c29519..1f0586b 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 https://github.com/ActiveState/code/tree/master/recipes/Python/578507_Strongly_connected_components_directed/recipe-578507.py.
+ From http://code.activestate.com/recipes/578507/.
"""
identified: Set[str] = set()
stack: List[str] = []
@@ -81,7 +81,7 @@ def topsort(
{B, C}
{A}
- From https://github.com/ActiveState/code/tree/master/recipes/Python/577413_Topological_Sort/recipe-577413.py.
+ From http://code.activestate.com/recipes/577413/.
"""
# TODO: Use a faster algorithm?
for k, v in data.items():