diff options
author | achernetz <none@none> | 2013-11-01 18:26:48 -0400 |
---|---|---|
committer | achernetz <none@none> | 2013-11-01 18:26:48 -0400 |
commit | e52a2d857902a77c665b418e898a242d0f11f42d (patch) | |
tree | 784525ffd06b0ecdbdfb6f407b677c86452f8d6f | |
parent | 72c4d3f95b4763a7b61f215b235816ef6cef3b0d (diff) | |
download | pylint-git-e52a2d857902a77c665b418e898a242d0f11f42d.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) |