summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorachernetz <devnull@localhost>2013-11-01 18:26:48 -0400
committerachernetz <devnull@localhost>2013-11-01 18:26:48 -0400
commit92b374d8949d2c764600118cefca85ebe20bcecb (patch)
treecdac9d313e72fdc576f1dfb44616509bfd9a23cc
parentf901d5ae8f44fdd73d2bd9f02d160bc3856e1fc8 (diff)
downloadpylint-92b374d8949d2c764600118cefca85ebe20bcecb.tar.gz
Fix line ending issues causing GUI to error out on Windows
-rw-r--r--gui.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/gui.py b/gui.py
index 0ee5974..06e7391 100644
--- a/gui.py
+++ b/gui.py
@@ -70,14 +70,14 @@ class BasicStream(object):
if text.strip():
self.nextTitle = text.strip()
- if text.startswith('\n'):
+ if text.startswith(os.linesep):
self.contents.append('')
if self.currout:
self.outdict[self.currout].append('')
- self.contents[-1] += text.strip('\n')
+ self.contents[-1] += text.strip(os.linesep)
if self.currout:
- self.outdict[self.currout][-1] += text.strip('\n')
- if text.endswith('\n') and text.strip():
+ self.outdict[self.currout][-1] += text.strip(os.linesep)
+ if text.endswith(os.linesep) and text.strip():
self.contents.append('')
if self.currout:
self.outdict[self.currout].append('')
@@ -227,7 +227,7 @@ class LintGui(object):
#buttons
Button(top_frame, text='Open', command=self.file_open).pack(side=LEFT)
- Button(top_frame, text='Open Package',
+ Button(top_frame, text='Open Package',
command=(lambda : self.file_open(package=True))).pack(side=LEFT)
self.btnRun = Button(top_frame, text='Run', command=self.run_lint)