From: Zac Medico Date: Thu, 19 Feb 2009 09:41:55 +0000 (-0000) Subject: For python-3.0 compatibility, don't use string.letters. X-Git-Tag: v2.2_rc24~167 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2cb8fb8b6ec94d443a47b7d6806f2e04e9a4414d;p=portage.git For python-3.0 compatibility, don't use string.letters. svn path=/main/trunk/; revision=12639 --- diff --git a/pym/portage/util.py b/pym/portage/util.py index 18bbe577b..4ba80b1c5 100644 --- a/pym/portage/util.py +++ b/pym/portage/util.py @@ -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"