aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/environment.py
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
commit5e50991f8c53920f87fefa88ff9016b893829a7d (patch)
tree7b44464a89b5a8d4e188ee83ac5d7aa516b38c98 /setuptools/tests/environment.py
parent1166cd39f2be99bd0aeace80642a80ccde244989 (diff)
downloadexternal_python_setuptools-5e50991f8c53920f87fefa88ff9016b893829a7d.tar.gz
external_python_setuptools-5e50991f8c53920f87fefa88ff9016b893829a7d.tar.bz2
external_python_setuptools-5e50991f8c53920f87fefa88ff9016b893829a7d.zip
Reindent clause. Prefer leading comment to inline.
Diffstat (limited to 'setuptools/tests/environment.py')
-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()