Repair parsing of numeric variables - fix by AI0867.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 2 Oct 2012 16:33:48 +0000 (12:33 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 2 Oct 2012 16:33:48 +0000 (12:33 -0400)
irkerhook.py

index 70a496e8e1a5d630dda3b21c0d9d597c72a23db0..ab38de49a69003a529867936dc40ac12970c7973 100755 (executable)
@@ -156,8 +156,8 @@ class GenericExtractor:
                     setattr(self, key, True)
                 elif type(val) == type("") and val.lower() == "false":
                     setattr(self, key, False)
-                elif key in GenericExtractor.numerics:
-                    setattr(self, key, int(val))
+            elif key in GenericExtractor.numerics:
+                setattr(self, key, int(val))
         if not self.project:
             sys.stderr.write("irkerhook.py: no project name set!\n")
             raise SystemExit, 1