Merge pull request #1614 from QuLogic/1613-fix-trailing-whitespace-py3k

Fix trailing whitespace segment on Python 3.
This commit is contained in:
Nikolai Aleksandrovich Pavlov 2016-07-10 03:02:09 +03:00 committed by GitHub
commit a3b14de0f5
1 changed files with 1 additions and 1 deletions

View File

@ -578,7 +578,7 @@ def trailing_whitespace(pl, segment_info):
else:
buf = segment_info['buffer']
bws = b' \t'
sws = str(bws)
sws = str(' \t') # Ignore unicode_literals and use native str.
for i in range(len(buf)):
try:
line = buf[i]