[libvirt] [PATCH sandbox] Python 3 renamed string.lowercase to string.ascii_lowercase

Daniel P. Berrangé berrange at redhat.com
Fri Mar 23 16:44:51 UTC 2018


Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
---
 libvirt-sandbox/image/cli.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libvirt-sandbox/image/cli.py b/libvirt-sandbox/image/cli.py
index d2035de..605183c 100644
--- a/libvirt-sandbox/image/cli.py
+++ b/libvirt-sandbox/image/cli.py
@@ -81,7 +81,7 @@ def prepare(args):
                            connect=args.connect)
 
 def random_domain_name(tmpl):
-    randomid = ''.join(random.choice(string.lowercase) for i in range(10))
+    randomid = ''.join(random.choice(string.ascii_lowercase) for i in range(10))
     return re.sub('[^a-z0-9-]', '_', tmpl.path[1:], re.I) + ":" + randomid
 
 def run(args):
-- 
2.14.3




More information about the libvir-list mailing list