We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3592b1 commit a6411d2Copy full SHA for a6411d2
1 file changed
bpython/cli.py
@@ -96,6 +96,9 @@ def parsekeywordpairs(signature):
96
parendepth += 1
97
elif value == u')' and parendepth:
98
parendepth -= 1
99
+ elif value == ':':
100
+ # End of signature reached
101
+ break
102
103
if parendepth:
104
substack.append(value)
@@ -133,7 +136,7 @@ def fixlongargs(f, argspec):
133
136
src = inspect.getsourcelines(f)
134
137
except IOError:
135
138
return
- signature = src[0][0]
139
+ signature = ''.join(src[0])
140
kwparsed = parsekeywordpairs(signature)
141
142
for i, (key, value) in enumerate(zip(keys, values)):
0 commit comments