aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2018-05-16 13:20:17 +0200
committerBryn M. Reeves <bmr@redhat.com>2018-05-24 15:27:52 +0100
commit68dbbf97bc88e11f067753cd6496842633c3410e (patch)
tree545568a1c1718ea9962934ec9e8942adb510b7fa
parent9dbdb27674759f50b7707db62ba245c684792dcb (diff)
downloadsos-68dbbf97bc88e11f067753cd6496842633c3410e.tar.gz
[policies] use py3-compliant string.ascii_lowercase
string.lowercase works in python2 only, use equivalent string.ascii_lowercase in either python 2 or 3 Resolves: #1296 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r--sos/policies/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/policies/__init__.py b/sos/policies/__init__.py
index 9e2b719e..f242df4c 100644
--- a/sos/policies/__init__.py
+++ b/sos/policies/__init__.py
@@ -294,7 +294,7 @@ No changes will be made to system configuration.
name = self.get_local_name().split('.')[0]
case = self.case_id
label = self.commons['cmdlineopts'].label
- rand = ''.join(random.choice(string.lowercase) for x in range(7))
+ rand = ''.join(random.choice(string.ascii_lowercase) for x in range(7))
if self.name_pattern == 'legacy':
nstr = "sosreport-{name}{case}{date}"