Parcourir la source

[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.

Naoki Kambe il y a 13 ans
Parent
commit
9b6993b6f6
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/lib/python/isc/config/module_spec.py

+ 1 - 1
src/lib/python/isc/config/module_spec.py

@@ -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)
         else:
             # no spec, always bad