diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-09-21 12:44:37 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-09-21 12:44:37 +0000 |
commit | c581522b4fcac9edae8e494e213c654612ad4490 (patch) | |
tree | f40c59286e998cdf8e42747ac2da442ce4b1fab7 /pym/portage/elog | |
parent | Fix all remaining SyntaxErrors with Python 3. (diff) | |
download | portage-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/elog')
-rw-r--r-- | pym/portage/elog/mod_echo.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pym/portage/elog/mod_echo.py b/pym/portage/elog/mod_echo.py index 28d77649e..1df2fca3b 100644 --- a/pym/portage/elog/mod_echo.py +++ b/pym/portage/elog/mod_echo.py @@ -5,10 +5,14 @@ from __future__ import print_function +import sys from portage.output import EOutput, colorize from portage.const import EBUILD_PHASES from portage.localization import _ +if sys.hexversion >= 0x3000000: + basestring = str + _items = [] def process(mysettings, key, logentries, fulltext): global _items |