diff options
author | Doug Hellmann <doug@doughellmann.com> | 2018-04-13 16:00:58 -0400 |
---|---|---|
committer | Doug Hellmann <doug@doughellmann.com> | 2018-04-16 13:04:03 -0400 |
commit | 6d8da4cdb98218cf7770539aa37f55ef24416d5c (patch) | |
tree | b29cb02c8bee2d7721e2c6d2529b96369722e891 /oslo_i18n | |
parent | 85693aaea9f26646022ce193fa4626a79014a662 (diff) | |
download | oslo-i18n-6d8da4cdb98218cf7770539aa37f55ef24416d5c.tar.gz |
set default python to python3
Set the default python to python3 except for the py27 environment. We
have to set that explicitly to override the new default.
As part of updating the pep8 job to run python 3 we need to remove the
use of the python 2 builtin unicode(). We can use six.text_type() to
produce the same result until we drop python 2 support.
Change-Id: I43c03aeb73bb8a246115400bcbd9a0a68708abd9
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Diffstat (limited to 'oslo_i18n')
-rw-r--r-- | oslo_i18n/tests/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/oslo_i18n/tests/utils.py b/oslo_i18n/tests/utils.py index a6ad6c3..be1d94b 100644 --- a/oslo_i18n/tests/utils.py +++ b/oslo_i18n/tests/utils.py @@ -36,7 +36,7 @@ class NoDeepCopyObject(object): return str(self.value) else: def __unicode__(self): - return unicode(self.value) + return six.text_type(self.value) def __deepcopy__(self, memo): raise TypeError('Deep Copy not supported') |