Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove old commented out code.
  • Loading branch information
serhiy-storchaka committed Apr 11, 2024
commit 53bc04eabcadaa1497f6fd98faa693550b48e59c
4 changes: 0 additions & 4 deletions Lib/pydoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,6 @@ def _getargspecs(object):
text_signature = getattr(object, '__text_signature__', None)
if text_signature:
argspecs = []
#for argspec in re.split(r'(?<=\))\n(?=\()', text_signature):
# if argspec[:2] == '($':
# argspec = '(' + argspec[2:]
for argspec, _ in inspect._signature_split(text_signature):
if getattr(object, '__self__', None) is not None:
# Strip the bound argument.
Expand All @@ -221,7 +218,6 @@ def _getargspecs(object):
argspec = '(' + argspec[m.end():]
argspecs.append(argspec)
return argspecs
#print('>>>>>>>>', object, file=sys.stderr)
return None

def classname(object, modname):
Expand Down