mirror of
https://github.com/ansible/awx.git
synced 2026-03-09 05:29:26 -02:30
fix lint
This commit is contained in:
@@ -277,7 +277,7 @@ def random_utf8(*args, **kwargs):
|
|||||||
|
|
||||||
def random_title(num_words=2, non_ascii=True):
|
def random_title(num_words=2, non_ascii=True):
|
||||||
if os.getenv('AWXKIT_FORCE_ONLY_ASCII', False):
|
if os.getenv('AWXKIT_FORCE_ONLY_ASCII', False):
|
||||||
non_ascii=False
|
non_ascii = False
|
||||||
base = ''.join([random.choice(words) for word in range(num_words)])
|
base = ''.join([random.choice(words) for word in range(num_words)])
|
||||||
if non_ascii:
|
if non_ascii:
|
||||||
title = ''.join([base, random_utf8(1)])
|
title = ''.join([base, random_utf8(1)])
|
||||||
|
|||||||
Reference in New Issue
Block a user