aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2015-11-21 10:11:17 -0800
committerZac Medico <zmedico@gentoo.org>2015-11-21 10:11:43 -0800
commitab7efe823ace977d8b46f324bdcbf44dcb7ca6d9 (patch)
treeaf9c365cf2d43a5454230746c6e026d4991f86f7
parenteapply_user: die if current phase is not src_prepare (diff)
downloadportage-ab7efe823ace977d8b46f324bdcbf44dcb7ca6d9.tar.gz
portage-ab7efe823ace977d8b46f324bdcbf44dcb7ca6d9.tar.bz2
portage-ab7efe823ace977d8b46f324bdcbf44dcb7ca6d9.zip
portage.util.locale: enable absolute_import (bug 566372)
Since commit e5ba8d096e56495a9b516cea818d48e104d62bca, absolute_import is required for python2 compatibility. Fixes: e5ba8d096e56 ("EAPI 6: Enforce posixish LC_CTYPE") X-Gentoo-Bug: 566372 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=566372
-rw-r--r--pym/portage/util/locale.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pym/portage/util/locale.py b/pym/portage/util/locale.py
index c3332ea54..05b39798e 100644
--- a/pym/portage/util/locale.py
+++ b/pym/portage/util/locale.py
@@ -6,7 +6,7 @@ Function to check whether the current used LC_CTYPE handles case
transformations of ASCII characters in a way compatible with the POSIX
locale.
"""
-from __future__ import unicode_literals
+from __future__ import absolute_import, unicode_literals
import locale
import logging
@@ -26,7 +26,6 @@ locale_categories = (
'LC_PAPER', 'LC_TELEPHONE',
)
-
_check_locale_cache = {}