From a828ef4cb5ee60e448a95bb746a55fb476b1c575 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 28 Oct 2011 17:12:11 -0700 Subject: Use bytes instead of unicode with isinstance. This is preferred since the bytes type is available in all supported python versions, while the unicode type is only available in python2. --- bin/repoman | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/repoman') diff --git a/bin/repoman b/bin/repoman index 2099241d9..42a615420 100755 --- a/bin/repoman +++ b/bin/repoman @@ -156,7 +156,7 @@ def ParseArgs(argv, qahelp): (opts, args), just like a call to parser.parse_args() """ - if argv and sys.hexversion < 0x3000000 and not isinstance(argv[0], unicode): + if argv and isinstance(argv[0], bytes): argv = [portage._unicode_decode(x) for x in argv] modes = { -- cgit v1.2.3-1-g7c22