For python-3.0 compatibility, don't use string.letters.
authorZac Medico <zmedico@gentoo.org>
Thu, 19 Feb 2009 09:41:55 +0000 (09:41 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 19 Feb 2009 09:41:55 +0000 (09:41 -0000)
svn path=/main/trunk/; revision=12639

pym/portage/util.py

index 18bbe577b9339ac2cd74170b36f566af37a57bfe..4ba80b1c58f8639d6b1c3c6e23810f40e16f5cbf 100644 (file)
@@ -407,7 +407,7 @@ 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=string.digits+string.letters+"~!@#$%*_\:;?,./-+{}"     
+               lex.wordchars += "~!@#$%*_\:;?,./-+{}"
                lex.quotes="\"'"
                if allow_sourcing:
                        lex.source="source"