From dc879c4d190efdd6511fd9c8d0b3f291751a2a9c Mon Sep 17 00:00:00 2001 From: Didier Raboud Date: Wed, 23 May 2012 11:26:25 +0200 Subject: [PATCH] PyUT3: Fix rnd_string to use ascii_letters and range instead of letters and xrange. Git-Dch: None --- test/test_lsb_release.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_lsb_release.py b/test/test_lsb_release.py index 87e5af0..7e85769 100644 --- a/test/test_lsb_release.py +++ b/test/test_lsb_release.py @@ -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. -- 2.30.2