Revert r12639 and use string.ascii_letters for python-3.0 compatibility.
authorZac Medico <zmedico@gentoo.org>
Sat, 21 Feb 2009 02:50:07 +0000 (02:50 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 21 Feb 2009 02:50:07 +0000 (02:50 -0000)
svn path=/main/trunk/; revision=12669

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"