Skip to content
Snippets Groups Projects
Commit c0f02c58 authored by David Fairbrother's avatar David Fairbrother
Browse files

Re #19156 Fixed usage of deprecated Python 2 method

parent 82538c72
No related branches found
No related tags found
No related merge requests found
......@@ -121,7 +121,7 @@ class MockInstSettings(object):
@staticmethod
def gen_random_string():
return ''.join(random.choice(string.lower(s)) for s in range(10))
return ''.join(random.choice(string.ascii_lowercase) for _ in range(10))
if __name__ == "__main__":
unittest.main()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment