# -*- coding: utf-8 -*-\r
\r
"""\r
-A process wrapper class that maintains the text output and execution status\r
-of a process or a list of other process wrappers which carry such data.\r
+A process wrapper class that maintains the text output and execution status of\r
+a process or a list of other process wrappers which carry such data.\r
"""\r
\r
import os\r
except:\r
try:\r
user = os.getenv("USERNAME")\r
- if user == None:\r
+ if user is None:\r
user = os.getenv("USER")\r
except:\r
user = "unknown_user"\r
\r
# This is now used to ensure that the process has finished\r
line = ""\r
- while line != None and process.poll() == None:\r
+ while line != None and process.poll() is None:\r
try:\r
line = process.stdout.readline()\r
except:\r
argsStart = len(sys.argv) + 1\r
args = []\r
\r
- if cmd == None:\r
+ if cmd is None:\r
print("process: No command specified")\r
\r
#\r