Skip to content

Commit b41d4aa

Browse files
committed
Revert whitespace changes
1 parent fdacefb commit b41d4aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/inspect.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2117,7 +2117,6 @@ def _signature_strip_non_python_syntax(signature):
21172117

21182118
lines = [l.encode('ascii') for l in signature.split('\n') if l]
21192119
generator = iter(lines).__next__
2120-
21212120
token_stream = tokenize.tokenize(generator)
21222121

21232122
text = []
@@ -2154,7 +2153,9 @@ def _signature_fromstr(cls, obj, s, skip_bound_arg=True):
21542153
and return a Signature based on it.
21552154
"""
21562155
Parameter = cls._parameter_cls
2156+
21572157
clean_signature, self_parameter = _signature_strip_non_python_syntax(s)
2158+
21582159
program = "def foo" + clean_signature + ": pass"
21592160

21602161
try:

0 commit comments

Comments
 (0)