From: Eric S. Raymond Date: Tue, 2 Oct 2012 16:33:48 +0000 (-0400) Subject: Repair parsing of numeric variables - fix by AI0867. X-Git-Tag: 1.5~30 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7a1377d075df24622828f1e8942a197e2729a3a8;p=irker.git Repair parsing of numeric variables - fix by AI0867. --- diff --git a/irkerhook.py b/irkerhook.py index 70a496e..ab38de4 100755 --- a/irkerhook.py +++ b/irkerhook.py @@ -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