summaryrefslogtreecommitdiffstats
path: root/pym/portage/exception.py
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/exception.py
parentbda55a1f3cd10f5463228cb882c5b6b67d8937ae (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/exception.py')
-rw-r--r--pym/portage/exception.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pym/portage/exception.py b/pym/portage/exception.py
index f47937115..85efc2767 100644
--- a/pym/portage/exception.py
+++ b/pym/portage/exception.py
@@ -2,8 +2,12 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
+import sys
from portage.localization import _
+if sys.hexversion >= 0x3000000:
+ basestring = str
+
class PortageException(Exception):
"""General superclass for portage exceptions"""
def __init__(self,value):