diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2023-01-19 18:01:26 +0100 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-01-20 13:05:37 +0900 |
commit | 94f5a3f12e1c61aa2f3cde2d7b260c08489336ac (patch) | |
tree | 9062a30a1d81a1a97e9397548e4ec48ae63c18a4 /mountconfig/SimpleCommandRunner.py | |
parent | b9c0b6996a6da72f93baf50121a1be4a6fa48d2e (diff) | |
download | tde-guidance-94f5a3f1.tar.gz tde-guidance-94f5a3f1.zip |
Drop python2 support.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
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()) |