diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-09-21 14:15:49 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-09-21 14:15:49 +0000 |
commit | 2f9b8514e4d4b15569ebc88e7da36f5ae972c37e (patch) | |
tree | 2135fe4428dd3e9ec4c8226885fae1d30e14514a /bin/portageq | |
parent | ff3b5059ea1b37ac27ae917441fd6f7a4e1eff8d (diff) | |
download | portage-2f9b8514e4d4b15569ebc88e7da36f5ae972c37e.tar.gz portage-2f9b8514e4d4b15569ebc88e7da36f5ae972c37e.tar.bz2 portage-2f9b8514e4d4b15569ebc88e7da36f5ae972c37e.zip |
Support both Python 2 and 3 in portage._unicode_encode() and portage._unicode_decode().
Update decoding in some files.
svn path=/main/trunk/; revision=14321
Diffstat (limited to 'bin/portageq')
-rwxr-xr-x | bin/portageq | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/portageq b/bin/portageq index 59eedc59f..34c4fb401 100755 --- a/bin/portageq +++ b/bin/portageq @@ -610,7 +610,7 @@ def main(): os.environ["ROOT"] = sys.argv[2] args = sys.argv[2:] - if args and not isinstance(args[0], unicode): + if args and sys.hexversion < 0x3000000 and not isinstance(args[0], unicode): for i in range(len(args)): args[i] = portage._unicode_decode(args[i]) |