summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRadostin Stoyanov <rstoyanov1@gmail.com>2017-04-13 15:06:32 +0100
committerCédric Bosdonnat <cbosdonnat@suse.com>2017-04-14 10:30:31 +0200
commitcc35b6e0736592bd2c20a9d4b1dcf12ae49c723a (patch)
treea86721bc9b582efc6f137e9f54d14bb9fa16bb47
parent2ea659146f80676c58987f14a32f8157535e7353 (diff)
downloadvirt-bootstrap.git-cc35b6e0736592bd2c20a9d4b1dcf12ae49c723a.tar.gz
virt-bootstrap.git-cc35b6e0736592bd2c20a9d4b1dcf12ae49c723a.tar.xz
virt-bootstrap.git-cc35b6e0736592bd2c20a9d4b1dcf12ae49c723a.zip
Python 3/2 compatibility: gettext.install unicode flag
The unicode flag is passed to `gettext.install` has default value `False` in Python2. [1] In Python3 this flag does not exists. [2] [1] https://docs.python.org/2/library/gettext.html#gettext.NullTranslations.install [2] https://docs.python.org/3.5/library/gettext.html#gettext.NullTranslations.install
-rw-r--r--virt-bootstrap.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/virt-bootstrap.py b/virt-bootstrap.py
index e475cd4..36902f5 100644
--- a/virt-bootstrap.py
+++ b/virt-bootstrap.py
@@ -36,7 +36,6 @@ gettext.textdomain("virt-bootstrap")
try:
gettext.install("virt-bootstrap",
localedir="/usr/share/locale",
- unicode=False,
codeset = 'utf-8')
except IOError:
import __builtin__