[python-debian/master 24/36] Use string.ascii_letters rather than the deprecated string.letters.

Colin Watson cjwatson at canonical.com
Mon Oct 8 07:41:23 UTC 2012


---
 tests/test_deb822.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/test_deb822.py b/tests/test_deb822.py
index 37fa92b..2716eec 100755
--- a/tests/test_deb822.py
+++ b/tests/test_deb822.py
@@ -348,7 +348,7 @@ class TestDeb822(unittest.TestCase):
     def gen_random_string(length=20):
         from random import choice
         import string
-        chars = string.letters + string.digits
+        chars = string.ascii_letters + string.digits
         return ''.join([choice(chars) for i in range(length)])
     gen_random_string = staticmethod(gen_random_string)
 
-- 
1.7.2.5





More information about the pkg-python-debian-commits mailing list