diff options
author | achernetz <devnull@localhost> | 2013-11-01 18:26:48 -0400 |
---|---|---|
committer | achernetz <devnull@localhost> | 2013-11-01 18:26:48 -0400 |
commit | 92b374d8949d2c764600118cefca85ebe20bcecb (patch) | |
tree | cdac9d313e72fdc576f1dfb44616509bfd9a23cc | |
parent | f901d5ae8f44fdd73d2bd9f02d160bc3856e1fc8 (diff) | |
download | pylint-92b374d8949d2c764600118cefca85ebe20bcecb.tar.gz |
Fix line ending issues causing GUI to error out on Windows
-rw-r--r-- | gui.py | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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) |