summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorachernetz <none@none>2013-11-01 18:26:48 -0400
committerachernetz <none@none>2013-11-01 18:26:48 -0400
commite52a2d857902a77c665b418e898a242d0f11f42d (patch)
tree784525ffd06b0ecdbdfb6f407b677c86452f8d6f
parent72c4d3f95b4763a7b61f215b235816ef6cef3b0d (diff)
downloadpylint-git-e52a2d857902a77c665b418e898a242d0f11f42d.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 0ee5974cf..06e739110 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)