Use more idiomatic comparison
This commit is contained in:
parent
69d19e49df
commit
d1a4a028cd
@ -258,7 +258,7 @@ class BaseType:
|
|||||||
"""
|
"""
|
||||||
utils.unused(indent) # only needed for Dict/List
|
utils.unused(indent) # only needed for Dict/List
|
||||||
str_value = self.to_str(value)
|
str_value = self.to_str(value)
|
||||||
if str_value == '':
|
if not str_value:
|
||||||
return 'empty'
|
return 'empty'
|
||||||
return '+pass:[{}]+'.format(html.escape(str_value))
|
return '+pass:[{}]+'.format(html.escape(str_value))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user