summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-09-21 15:44:51 +0000
committerZac Medico <zmedico@gentoo.org>2009-09-21 15:44:51 +0000
commit31505dfc2b6a6a0533123fe43d2240aab177d7c4 (patch)
treebe73253d1bec87140c500dabe2d3702c1be0a492
parent0202f59d1ba4309d25022ecdb7faa6114f9269cd (diff)
downloadportage-31505dfc2b6a6a0533123fe43d2240aab177d7c4.tar.gz
portage-31505dfc2b6a6a0533123fe43d2240aab177d7c4.tar.bz2
portage-31505dfc2b6a6a0533123fe43d2240aab177d7c4.zip
Fix case for 0 args in args unicode conversion.
svn path=/main/trunk/; revision=14326
-rw-r--r--pym/_emerge/main.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py
index 83b50df63..6ac1b50eb 100644
--- a/pym/_emerge/main.py
+++ b/pym/_emerge/main.py
@@ -769,7 +769,8 @@ def parse_opts(tmpcmdline, silent=False):
if myaction is None and myoptions.deselect is True:
myaction = 'deselect'
- if sys.hexversion < 0x3000000 and not isinstance(myargs[0], unicode):
+ if myargs and sys.hexversion < 0x3000000 and \
+ not isinstance(myargs[0], unicode):
for i in range(len(myargs)):
myargs[i] = portage._unicode_decode(myargs[i])