Skip to content

Commit

Permalink
adding black and flake8 formatting in gen.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajaditya Chauhan authored and jhutar committed Jan 18, 2024
1 parent 626e6df commit f29e4e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion opl/gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def gen_hostname():
def gen_string(size=10):
return "".join(random.choice(string.printable) for i in range(size))


def gen_safe_string(size=10):
# starting with "u" to specify it is a username
return 'u' + ''.join(random.choice(string.ascii_lowercase) for _ in range(size-1))
return "u" + "".join(random.choice(string.ascii_lowercase) for _ in range(size - 1))

0 comments on commit f29e4e0

Please sign in to comment.