This commit is contained in:
Kovid Goyal 2019-03-24 10:06:18 +05:30
parent fcedc9f5c3
commit b6724ed177
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -17,9 +17,7 @@ def to_color(x):
def to_color_or_none(x):
if x.lower() == 'none':
return
return to_color(x)
return None if x.lower() == 'none' else to_color(x)
def positive_int(x):