diff options
Diffstat (limited to 'mountconfig/SimpleCommandRunner.py')
-rw-r--r-- | mountconfig/SimpleCommandRunner.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mountconfig/SimpleCommandRunner.py b/mountconfig/SimpleCommandRunner.py index 4eafedd..a6767b5 100644 --- a/mountconfig/SimpleCommandRunner.py +++ b/mountconfig/SimpleCommandRunner.py @@ -40,9 +40,9 @@ class SimpleCommandRunner(TQObject): is the output from stdout and stderr. """ global debug - if debug: print cmdlist + if debug: print(cmdlist) self.STDOUT_only = STDOUT_only - self.output = u"" + self.output = "" proc = TDEProcess() proc.setEnvironment("LANG","US") proc.setEnvironment("LC_ALL","US") @@ -58,12 +58,12 @@ class SimpleCommandRunner(TQObject): ######################################################################## def slotStdout(self,proc,buffer,buflen): global debug - if debug: print "slotStdout() |"+buffer+"|" + if debug: print("slotStdout() |"+buffer+"|") self.output += buffer.decode(locale.getpreferredencoding()) ######################################################################## def slotStderr(self,proc,buffer,buflen): global debug - if debug: print "slotStderr() |"+buffer+"|" + if debug: print("slotStderr() |"+buffer+"|") if not self.STDOUT_only: self.output += buffer.decode(locale.getpreferredencoding()) |