aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-21 12:44:37 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-21 12:44:37 +0000
commitc581522b4fcac9edae8e494e213c654612ad4490 (patch)
treef40c59286e998cdf8e42747ac2da442ce4b1fab7 /pym/portage/proxy
parentFix all remaining SyntaxErrors with Python 3. (diff)
downloadportage-c581522b4fcac9edae8e494e213c654612ad4490.tar.gz
portage-c581522b4fcac9edae8e494e213c654612ad4490.tar.bz2
portage-c581522b4fcac9edae8e494e213c654612ad4490.zip
Define basestring as str when Python 3 is used.
svn path=/main/trunk/; revision=14316
Diffstat (limited to 'pym/portage/proxy')
-rw-r--r--pym/portage/proxy/lazyimport.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/proxy/lazyimport.py b/pym/portage/proxy/lazyimport.py
index 1a4a246ef..77e80e02e 100644
--- a/pym/portage/proxy/lazyimport.py
+++ b/pym/portage/proxy/lazyimport.py
@@ -14,6 +14,9 @@ except ImportError:
from portage.proxy.objectproxy import ObjectProxy
+if sys.hexversion >= 0x3000000:
+ basestring = str
+
_module_proxies = {}
_module_proxies_lock = threading.RLock()