Skip to content

Commit c21f342

Browse files
committed
Fix typo
1 parent ab176ab commit c21f342

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)