Created
September 8, 2013 19:42
-
-
Save dobo90/6487800 to your computer and use it in GitHub Desktop.
spyder 2.2.4 patch for python2-pylint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -rupN spyder-2.2.4/spyderplugins/widgets/pylintgui.py spyder-2.2.4-patched/spyderplugins/widgets/pylintgui.py | |
--- spyder-2.2.4/spyderplugins/widgets/pylintgui.py 2013-09-04 21:04:18.000000000 +0200 | |
+++ spyder-2.2.4-patched/spyderplugins/widgets/pylintgui.py 2013-09-08 21:32:02.000000000 +0200 | |
@@ -40,7 +40,7 @@ from spyderlib.widgets.comboboxes import | |
_ = get_translation("p_pylint", dirname="spyderplugins") | |
-PYLINT_PATH = programs.find_program('pylint') | |
+PYLINT_PATH = programs.find_program('pylint2') | |
def get_pylint_version(): | |
@@ -53,8 +53,8 @@ def get_pylint_version(): | |
pylint_exe_name = 'pylint-script.py' | |
else: | |
shell = False | |
- pylint_exe_name = 'pylint' | |
- process = subprocess.Popen(['pylint', '--version'], | |
+ pylint_exe_name = 'pylint2' | |
+ process = subprocess.Popen(['pylint2', '--version'], | |
stdout=subprocess.PIPE, stderr=subprocess.PIPE, | |
cwd=osp.dirname(PYLINT_PATH), shell=shell) | |
lines = to_unicode_from_fs(process.stdout.read()).splitlines() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment