Revert r12639 and use string.ascii_letters for python-3.0 compatibility.
authorZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 06:04:15 +0000 (06:04 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 06:04:15 +0000 (06:04 -0000)
(trunk r12669)

svn path=/main/branches/2.1.6/; revision=12931

pym/portage/util.py

index eaab1bf4a1bb474cee0bed671f314d174756f567..9a59445105768cf863c0365b559c0be5a8db9a5d 100644 (file)
@@ -588,7 +588,8 @@ def getconfig(mycfg, tolerant=0, allow_sourcing=False, expand=True):
                # only joins relative paths when the infile
                # attribute is properly set.
                lex = shlex_class(f, infile=mycfg, posix=True)
-               lex.wordchars += "~!@#$%*_\:;?,./-+{}"
+               lex.wordchars = string.digits + string.ascii_letters + \
+                       "~!@#$%*_\:;?,./-+{}"
                lex.quotes="\"'"
                if allow_sourcing:
                        lex.source="source"