mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-11-27 11:24:28 +01:00
checkpoint for modoboa.admin tests in both python 2 and 3
This commit is contained in:
@@ -63,7 +63,7 @@ class Alias(AdminObject):
|
||||
def generate_random_address(cls):
|
||||
"""Generate a random address (local part)."""
|
||||
m = hashlib.md5()
|
||||
for x in random.sample(xrange(10000000), 60):
|
||||
for x in random.sample(range(10000000), 60):
|
||||
m.update(str(x))
|
||||
return m.hexdigest()[:20]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user