summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-03-11 06:04:15 +0000
committerZac Medico <zmedico@gentoo.org>2009-03-11 06:04:15 +0000
commit8154cb161f4d12ff937e338211c822aea89ccfbf (patch)
treec3a6e1c2724f9bcd3ed80a7d94565ed4a0cf8d54
parentd944cfbdc2392bb16a315f1d2d4fb59625cf04ad (diff)
downloadportage-8154cb161f4d12ff937e338211c822aea89ccfbf.tar.gz
portage-8154cb161f4d12ff937e338211c822aea89ccfbf.tar.bz2
portage-8154cb161f4d12ff937e338211c822aea89ccfbf.zip
Revert r12639 and use string.ascii_letters for python-3.0 compatibility.
(trunk r12669) svn path=/main/branches/2.1.6/; revision=12931
-rw-r--r--pym/portage/util.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage/util.py b/pym/portage/util.py
index eaab1bf4a..9a5944510 100644
--- a/pym/portage/util.py
+++ b/pym/portage/util.py
@@ -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"