mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
Merge pull request #4462 from AlanCoding/the_edge_of_unicode
Fix error due to randint inclusivity Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
commit
99357acf5d
@ -251,7 +251,7 @@ def gen_utf_char():
|
||||
is_char = False
|
||||
b = 'b'
|
||||
while not is_char:
|
||||
b = random.randint(32, 0x110000)
|
||||
b = random.randint(32, 0x10ffff)
|
||||
is_char = chr(b).isprintable()
|
||||
return chr(b)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user