diff options
Diffstat (limited to 'pym/portage/__init__.py')
-rw-r--r-- | pym/portage/__init__.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 621daa7be..3be6e651f 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -4079,10 +4079,9 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks", "URI": loc, "FILE": myfile } - import shlex, StringIO - lexer = shlex.shlex(StringIO.StringIO(locfetch), posix=True) - lexer.whitespace_split = True - myfetch = [varexpand(x, mydict=variables) for x in lexer] + import shlex + myfetch = shlex.split(locfetch) + myfetch = [varexpand(x, mydict=variables) for x in myfetch] myret = -1 try: |