PyUT3: Fix rnd_string to use ascii_letters and range instead of letters and xrange.
authorDidier Raboud <odyx@debian.org>
Wed, 23 May 2012 09:26:25 +0000 (11:26 +0200)
committerDidier Raboud <odyx@debian.org>
Wed, 23 May 2012 12:56:48 +0000 (14:56 +0200)
Git-Dch: None

test/test_lsb_release.py

index 87e5af09f6d5d9126bc254d9e66c07832fb45c91..7e85769615a642f18574b4bd337ce80c719ef50d 100644 (file)
@@ -9,7 +9,7 @@ import string
 import os
 
 def rnd_string(min_l,max_l):
-       return ''.join( [random.choice(string.letters) for i in xrange(random.randint(min_l,max_l))])
+       return ''.join( [random.choice(string.ascii_letters) for i in range(random.randint(min_l,max_l))])
 
 def get_arch_distinfo():
        # Copied verbatim from guess_debian_release; sucks but unavoidable.