summaryrefslogtreecommitdiffstats
path: root/awxkit
diff options
context:
space:
mode:
Diffstat (limited to 'awxkit')
-rw-r--r--awxkit/awxkit/utils/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/awxkit/awxkit/utils/__init__.py b/awxkit/awxkit/utils/__init__.py
index 3b7ee3399c..1c16f8b11d 100644
--- a/awxkit/awxkit/utils/__init__.py
+++ b/awxkit/awxkit/utils/__init__.py
@@ -276,6 +276,8 @@ def random_utf8(*args, **kwargs):
def random_title(num_words=2, non_ascii=True):
+ if os.getenv('AWXKIT_FORCE_ONLY_ASCII', False):
+ non_ascii=False
base = ''.join([random.choice(words) for word in range(num_words)])
if non_ascii:
title = ''.join([base, random_utf8(1)])