summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylvain Th?nault <sylvain.thenault@logilab.fr>2013-07-31 08:06:54 +0200
committerSylvain Th?nault <sylvain.thenault@logilab.fr>2013-07-31 08:06:54 +0200
commit1470030ce298c3f2401830b5a02fe5b76e221eb4 (patch)
treeeae031742b43cf744844a3aba478011dcd2a30a3
parentda271bd68f2b79f3480c3efb5f3344ed35fd618e (diff)
downloadpylint-1470030ce298c3f2401830b5a02fe5b76e221eb4.tar.gz
fix epylint w/ python3. Closes issue #7
-rw-r--r--ChangeLog6
-rwxr-xr-xepylint.py4
2 files changed, 6 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 36eeebb..0b947f7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -77,7 +77,7 @@ ChangeLog for Pylint
* Added a new warning 'old-raise-syntax' for the deprecated syntax
raise Exception, args
- * Support for PEP 3102 and new missing-kwoa (E1125) message for missing
+ * Support for PEP 3102 and new missing-kwoa (E1125) message for missing
mandatory keyword argument (logilab.org's #107788)
* Fix spelling of max-branchs option, now max-branches
@@ -94,12 +94,14 @@ ChangeLog for Pylint
containers like tuple
* bitbucket #16: fix False positive E1003 on Python 3 for argument-less super()
-
+
* bitbucket #6: put back documentation in source distribution
* bitbucket #15: epylint shouldn't hang anymore when there is a large
output on pylint'stderr
+ * bitbucket #7: fix epylint w/ python3
+
* bitbucket #3: remove string module from the default list of deprecated
modules
diff --git a/epylint.py b/epylint.py
index f941985..125f956 100755
--- a/epylint.py
+++ b/epylint.py
@@ -76,7 +76,7 @@ def lint(filename):
lintPath = os.path.join(os.path.dirname(__file__), 'lint.py')
cmd = [sys.executable, lintPath, '-f', 'parseable', '-r', 'n',
'--disable=C,R,I', childPath]
- process = Popen(cmd, stdout=PIPE, cwd=parentPath)
+ process = Popen(cmd, stdout=PIPE, cwd=parentPath, universal_newlines=True)
# The parseable line format is '%(path)s:%(line)s: [%(sigle)s%(obj)s] %(msg)s'
# NOTE: This would be cleaner if we added an Emacs reporter to pylint.reporters.text ..
@@ -150,7 +150,7 @@ def py_run(command_options='', return_std=False, stdout=None, stderr=None,
else:
stderr = sys.stderr
# Call pylint in a subprocess
- p = Popen(command_line, shell=True, stdout=stdout, stderr=stderr)
+ p = Popen(command_line, shell=True, stdout=stdout, stderr=stderr, universal_newlines=True)
p.wait()
# Return standart output and error
if return_std: