diff options
Diffstat (limited to 'contrib/zoneextractor.py')
-rw-r--r-- | contrib/zoneextractor.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/zoneextractor.py b/contrib/zoneextractor.py index 48e4db5a..57068327 100644 --- a/contrib/zoneextractor.py +++ b/contrib/zoneextractor.py @@ -39,7 +39,7 @@ class Zone: self.to_file(sys.stdout) def to_file(self, f): - if type(f) is 'file': + if type(f) == 'file': fd = f elif type(f) is str: if os.path.isdir(f): @@ -203,5 +203,6 @@ def main(): except IOError as e: LOG.error(e) + if __name__ == '__main__': sys.exit(main()) |