From 2f9b8514e4d4b15569ebc88e7da36f5ae972c37e Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Mon, 21 Sep 2009 14:15:49 +0000 Subject: 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 --- bin/portageq | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') 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]) -- cgit v1.2.3-1-g7c22