diff options
author | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2013-07-31 08:06:54 +0200 |
---|---|---|
committer | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2013-07-31 08:06:54 +0200 |
commit | 1470030ce298c3f2401830b5a02fe5b76e221eb4 (patch) | |
tree | eae031742b43cf744844a3aba478011dcd2a30a3 | |
parent | da271bd68f2b79f3480c3efb5f3344ed35fd618e (diff) | |
download | pylint-1470030ce298c3f2401830b5a02fe5b76e221eb4.tar.gz |
fix epylint w/ python3. Closes issue #7
-rw-r--r-- | ChangeLog | 6 | ||||
-rwxr-xr-x | epylint.py | 4 |
2 files changed, 6 insertions, 4 deletions
@@ -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 @@ -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: |