Commit 9b6993b6 authored by Naoki Kambe's avatar Naoki Kambe
Browse files

[trac929] changed into the exact way of checking whether the value is "None" or

not in the "if" branch as pointed out in the reviewing.
parent 7bda7762
......@@ -130,7 +130,7 @@ class ModuleSpec:
non-default values). Also it checks 'item_format' in case
of time"""
stat_spec = self.get_statistics_spec()
if stat_spec:
if stat_spec != None:
return _validate_spec_list(stat_spec, full, stat, errors)
# no spec, always bad
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment