mirror of
https://github.com/powerline/powerline.git
synced 2025-07-24 22:36:01 +02:00
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:
|
||||
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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user