Merge pull request #1614 from QuLogic/1613-fix-trailing-whitespace-py3k
Fix trailing whitespace segment on Python 3.
This commit is contained in:
commit
a3b14de0f5
|
@ -578,7 +578,7 @@ def trailing_whitespace(pl, segment_info):
|
||||||
else:
|
else:
|
||||||
buf = segment_info['buffer']
|
buf = segment_info['buffer']
|
||||||
bws = b' \t'
|
bws = b' \t'
|
||||||
sws = str(bws)
|
sws = str(' \t') # Ignore unicode_literals and use native str.
|
||||||
for i in range(len(buf)):
|
for i in range(len(buf)):
|
||||||
try:
|
try:
|
||||||
line = buf[i]
|
line = buf[i]
|
||||||
|
|
Loading…
Reference in New Issue