mirror of
https://github.com/python/cpython.git
synced 2025-10-06 15:11:58 +00:00
Revert unneccessary changes made in bpo-30296 and apply other improvements. (GH-2624)
(cherry picked from commit 3f2e6f15d6
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
a9e0b070b3
commit
f8a3485dcd
4 changed files with 6 additions and 5 deletions
|
@ -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]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue