Merge "validate non-ascii values for swift properties"
This commit is contained in:
commit
a140548566
@ -419,3 +419,11 @@ def build_kwargs_dict(arg_name, value):
|
|||||||
if value:
|
if value:
|
||||||
kwargs[arg_name] = value
|
kwargs[arg_name] = value
|
||||||
return kwargs
|
return kwargs
|
||||||
|
|
||||||
|
|
||||||
|
def is_ascii(string):
|
||||||
|
try:
|
||||||
|
string.decode('ascii')
|
||||||
|
return True
|
||||||
|
except UnicodeDecodeError:
|
||||||
|
return False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user