Skip to content

Commit 530ff59

Browse files
committed
Move existing documentation strings to 2.7 standard (87 small changes).
Fixed a problem in make_pydocs with __abstractmethods__ and regenerated BuiltinDocs.
1 parent f9a974a commit 530ff59

File tree

2 files changed

+4120
-4048
lines changed

2 files changed

+4120
-4048
lines changed

Misc/make_pydocs.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ def print_doc(out, obj, meth):
66
doc = getattr(obj, meth)
77
bdname = '%s_doc' % obj.__name__
88
else:
9-
doc = getattr(obj, meth).__doc__
9+
if meth == '__abstractmethods__':
10+
# getattr(type,'__abstractmethods__') would fail
11+
doc = ""
12+
else:
13+
doc = getattr(obj, meth).__doc__
1014
bdname = '%s_%s_doc' % (obj.__name__, meth)
1115

1216
if doc is None:

0 commit comments

Comments
 (0)