summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-09-29 22:15:49 -0400
committerJason R. Coombs <jaraco@jaraco.com>2014-09-29 22:15:49 -0400
commit2e8c4d88075dae78e0a61ade45c79b8cace3adb4 (patch)
tree8df57429363f20ce7ce0af46529892dd8f199c8e
parentf11982fc00820b5daf0a2cb40c8e815ae701ad1f (diff)
downloadpython-setuptools-bitbucket-2e8c4d88075dae78e0a61ade45c79b8cace3adb4.tar.gz
Reindent clause. Prefer leading comment to inline.
-rw-r--r--setuptools/tests/environment.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/setuptools/tests/environment.py b/setuptools/tests/environment.py
index 5fdbd969..c8d0e669 100644
--- a/setuptools/tests/environment.py
+++ b/setuptools/tests/environment.py
@@ -100,8 +100,9 @@ def run_setup_py(cmd, pypath=None, path=None,
shell = sys.platform == 'win32'
try:
- proc = _Popen(cmd, stdout=_PIPE, stderr=_PIPE,
- shell=shell, env=env)
+ proc = _Popen(
+ cmd, stdout=_PIPE, stderr=_PIPE, shell=shell, env=env,
+ )
data = proc.communicate()[data_stream]
except OSError:
@@ -109,7 +110,8 @@ def run_setup_py(cmd, pypath=None, path=None,
#decode the console string if needed
if hasattr(data, "decode"):
- data = data.decode() # should use the preferred encoding
+ # use the default encoding
+ data = data.decode()
data = unicodedata.normalize('NFC', data)
#communciate calls wait()