For python-3.0 compatibility, don't use string.letters. (trunk r12639)
authorZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 05:48:48 +0000 (05:48 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 05:48:48 +0000 (05:48 -0000)
svn path=/main/branches/2.1.6/; revision=12911

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"