summaryrefslogtreecommitdiffstats
path: root/pykolab/utils.py
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2019-10-25 15:07:45 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2019-10-25 15:07:45 +0200
commit7954241cdfadfbe12829608090486e2cb4771056 (patch)
treebd111dfd557c6e852e97d783e04cd5e905e189ad /pykolab/utils.py
parent28d9e703ea31a070a05589a2bd82b79bc7e6bed4 (diff)
downloadpykolab-7954241cdfadfbe12829608090486e2cb4771056.tar.gz
More linting and compatibility
Diffstat (limited to 'pykolab/utils.py')
-rw-r--r--pykolab/utils.py3
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