more tweaks for python3
[plcapi.git] / PLC / Sites.py
index 9d565c4..f9f16bc 100644 (file)
@@ -68,7 +68,7 @@ class Site(Row):
         if not len(login_base):
             raise PLCInvalidArgument("Login base must be specified")
 
-        if not set(login_base).issubset(string.lowercase + string.digits + '.'):
+        if not set(login_base).issubset(string.ascii_lowercase + string.digits + '.'):
             raise PLCInvalidArgument("Login base must consist only of lowercase ASCII letters or numbers or dots")
 
         conflicts = Sites(self.api, [login_base])