summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pkgimport.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2007-08-14 09:23:10 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2007-08-14 09:23:10 (GMT)
commit967f1e3b85ac239d6ae9900a62304392682131a7 (patch)
tree8e39c3f8fa0612742e71b1ac580c2729cf928195 /Lib/test/test_pkgimport.py
parent5424df2f7ee8cc0e8d177f0c035120a24addd455 (diff)
downloadcpython-967f1e3b85ac239d6ae9900a62304392682131a7.zip
cpython-967f1e3b85ac239d6ae9900a62304392682131a7.tar.gz
cpython-967f1e3b85ac239d6ae9900a62304392682131a7.tar.bz2
Remove string.{letters,lowercase,uppercase}.
Diffstat (limited to 'Lib/test/test_pkgimport.py')
-rw-r--r--Lib/test/test_pkgimport.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_pkgimport.py b/Lib/test/test_pkgimport.py
index 8b5e3ad..789f4d3 100644
--- a/Lib/test/test_pkgimport.py
+++ b/Lib/test/test_pkgimport.py
@@ -7,7 +7,7 @@ class TestImport(unittest.TestCase):
def __init__(self, *args, **kw):
self.package_name = 'PACKAGE_'
while self.package_name in sys.modules:
- self.package_name += random.choose(string.letters)
+ self.package_name += random.choose(string.ascii_letters)
self.module_name = self.package_name + '.foo'
unittest.TestCase.__init__(self, *args, **kw)
@@ -58,7 +58,7 @@ class TestImport(unittest.TestCase):
# ...make up a variable name that isn't bound in __builtins__
var = 'a'
while var in dir(__builtins__):
- var += random.choose(string.letters)
+ var += random.choose(string.ascii_letters)
# ...make a module that just contains that
self.rewrite_file(var)