summaryrefslogtreecommitdiffstats
path: root/bin/repoman
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-10-28 17:12:11 -0700
committerZac Medico <zmedico@gentoo.org>2011-10-28 17:12:11 -0700
commita828ef4cb5ee60e448a95bb746a55fb476b1c575 (patch)
treed9832e8bfae8c266da28d72e665f5d3c165e52f3 /bin/repoman
parent967bc855b7e4db529afbe8b7bf7f8ed7ea55858a (diff)
downloadportage-a828ef4cb5ee60e448a95bb746a55fb476b1c575.tar.gz
portage-a828ef4cb5ee60e448a95bb746a55fb476b1c575.tar.bz2
portage-a828ef4cb5ee60e448a95bb746a55fb476b1c575.zip
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.
Diffstat (limited to 'bin/repoman')
-rwxr-xr-xbin/repoman2
1 files changed, 1 insertions, 1 deletions
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 = {