Browse 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 13 years ago
parent
commit
9b6993b6f6
1 changed files with 1 additions and 1 deletions
  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