diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2019-10-25 15:07:45 +0200 |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2019-10-25 15:07:45 +0200 |
commit | 7954241cdfadfbe12829608090486e2cb4771056 (patch) | |
tree | bd111dfd557c6e852e97d783e04cd5e905e189ad /pykolab/utils.py | |
parent | 28d9e703ea31a070a05589a2bd82b79bc7e6bed4 (diff) | |
download | pykolab-7954241cdfadfbe12829608090486e2cb4771056.tar.gz |
More linting and compatibility
Diffstat (limited to 'pykolab/utils.py')
-rw-r--r-- | pykolab/utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pykolab/utils.py b/pykolab/utils.py index 1e5057c..bda7e76 100644 --- a/pykolab/utils.py +++ b/pykolab/utils.py @@ -566,6 +566,7 @@ def translate(mystring, locale_name='en_US'): command = ['/usr/bin/iconv', '-f', 'UTF-8', '-t', 'ASCII//TRANSLIT', '-s'] log.debug(_l("Executing '%s | %s'") % (r"%s" % (mystring), ' '.join(command)), level=8) + process = subprocess.Popen( command, stdout=subprocess.PIPE, @@ -575,7 +576,7 @@ def translate(mystring, locale_name='en_US'): ) try: - print >> process.stdin, r"%s" % mystring + print(r"%s" % (mystring), file=process.stdin) except UnicodeEncodeError: pass |