From 3f2e6f15d64d81633b1fc0b308afc0d6e9026b61 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Mon, 26 Feb 2018 16:50:11 +0200 Subject: Revert unneccessary changes made in bpo-30296 and apply other improvements. (GH-2624) --- Lib/turtle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/turtle.py') diff --git a/Lib/turtle.py b/Lib/turtle.py index 8909fe914e..9db564b7eb 100644 --- a/Lib/turtle.py +++ b/Lib/turtle.py @@ -3839,7 +3839,7 @@ def write_docstringdict(filename="turtle_docstringdict"): docsdict[key] = eval(key).__doc__ with open("%s.py" % filename,"w") as f: - keys = sorted(x for x in docsdict.keys() + keys = sorted(x for x in docsdict if x.split('.')[1] not in _alias_list) f.write('docsdict = {\n\n') for key in keys[:-1]: -- cgit v1.2.1