diff options
author | necoro <> | 2007-08-27 07:30:38 +0000 |
---|---|---|
committer | necoro <> | 2007-08-27 07:30:38 +0000 |
commit | 8c066e79b03ad4e20a9f7c4ae36a9e247b79a8eb (patch) | |
tree | cbc6522de7532adc6a85ff6e816e186b077f2cc4 /portato/config_parser.py | |
parent | c16b547f2c2bc23bef3a93b1987715c00c521718 (diff) | |
download | portato-8c066e79b03ad4e20a9f7c4ae36a9e247b79a8eb.tar.gz portato-8c066e79b03ad4e20a9f7c4ae36a9e247b79a8eb.tar.bz2 portato-8c066e79b03ad4e20a9f7c4ae36a9e247b79a8eb.zip |
Change to absolute_imports; Warning: definitly broken
Diffstat (limited to '')
-rw-r--r-- | portato/config_parser.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/portato/config_parser.py b/portato/config_parser.py index 8555fc0..c3f5bae 100644 --- a/portato/config_parser.py +++ b/portato/config_parser.py @@ -29,12 +29,12 @@ Currently supported are the values (case insensitive): false, 0, off, falsch, ne @var SECTION: Regular expression allowing the recognition of a section header. @var EXPRESSION: Regular expression defining a normal option-value pair. """ +from __future__ import absolute_import -from helper import debug +import re from gettext import lgettext as _ -import re -import types +from .helper import debug DELIMITER = ["=", ":"] COMMENT = [";","#"] @@ -285,7 +285,7 @@ class ConfigParser: section = section.upper() key = key.lower() - if not isinstance(value, types.BooleanType): + if not isinstance(value, bool): raise ValueError, "Passed value must be a boolean." val = self.vars[section][key] |