Fix for Python 2 on Windows, see #1037.

This commit is contained in:
T.Rzepka
2018-02-11 22:37:57 +01:00
parent 92c76537d6
commit b38d31b99d
2 changed files with 3 additions and 0 deletions

View File

@@ -47,5 +47,6 @@ Simon Ruggier (@sruggier)
Robin Roth (@robinro)
Malte Plath (@langsamer)
Anton Zub (@zabulazza)
Tobias Rzepka (@TobiasRzepka)
Note: (@user) means a github user name.

View File

@@ -138,11 +138,13 @@ class _CompiledSubprocess(object):
_MAIN_PATH,
os.path.dirname(os.path.dirname(parso_path))
)
universal_newlines = not is_py3
return subprocess.Popen(
args,
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
# stderr=subprocess.PIPE
universal_newlines=universal_newlines
)
def run(self, evaluator, function, args=(), kwargs={}):