...
This commit is contained in:
parent
fcedc9f5c3
commit
b6724ed177
1 changed files with 1 additions and 3 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue