[Jython-checkins] jython: Use already defined _win_oses instead of hard-coded 'nt'.
alex.gronholm
jython-checkins at python.org
Thu Jan 8 16:02:35 CET 2015
https://hg.python.org/jython/rev/2ffae23d1e07
changeset: 7519:2ffae23d1e07
user: Pekka Klärck <peke at iki.fi>
date: Thu Jan 08 16:34:34 2015 +0200
summary:
Use already defined _win_oses instead of hard-coded 'nt'.
Would probably be better to define `mswindows_jython = os._name == 'nt'`
instead of using `os._name in _win_oses` in general, but that's outside
the scope of this pr.
files:
Lib/subprocess.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
--- a/Lib/subprocess.py
+++ b/Lib/subprocess.py
@@ -1366,7 +1366,7 @@
else:
return field
- if os._name != 'nt':
+ if os._name not in _win_oses:
def _get_pid(self, pid_field='pid'):
field = self._get_private_field(self._process, pid_field)
--
Repository URL: https://hg.python.org/jython
More information about the Jython-checkins
mailing list