Skip to content

Commit 381707e

Browse files
Fix typo
1 parent 3ad3fff commit 381707e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/pydoc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ def source_synopsis(file_):
399399

400400
# tokenize always returns atleast ENCODING and ENDMARKER
401401
for _token in tokens:
402-
_token.name = token.tok_name[token.type]
402+
_token.name = token.tok_name[_token.type]
403403
if _token.name not in ['COMMENT', 'NL', 'ENCODING']:
404404
break
405405
if _token.name == 'STRING':

0 commit comments

Comments
 (0)