Skip to content
Merged
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
fix comment, cleaner diff
  • Loading branch information
albertjan committed May 16, 2017
commit feaed9d51217ba6406e0ef3fa7791cb1ea6c38c5
2 changes: 1 addition & 1 deletion Lib/tokenize.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ def _tokenize(readline, encoding):
if pos == max:
break

if line[pos] in '#\r\n': # skip comment and blank lines and
if line[pos] in '#\r\n': # skip comments or blank lines
if line[pos] == '#':
comment_token = line[pos:].rstrip('\r\n')
yield TokenInfo(COMMENT, comment_token,
Expand Down