Use more idiomatic comparison

This commit is contained in:
Florian Bruhin 2017-09-22 13:24:26 +02:00
parent 69d19e49df
commit d1a4a028cd

View File

@ -258,7 +258,7 @@ class BaseType:
"""
utils.unused(indent) # only needed for Dict/List
str_value = self.to_str(value)
if str_value == '':
if not str_value:
return 'empty'
return '+pass:[{}]+'.format(html.escape(str_value))