From 31505dfc2b6a6a0533123fe43d2240aab177d7c4 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 21 Sep 2009 15:44:51 +0000 Subject: Fix case for 0 args in args unicode conversion. svn path=/main/trunk/; revision=14326 --- pym/_emerge/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pym') 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]) -- cgit v1.2.3-1-g7c22