From 8c066e79b03ad4e20a9f7c4ae36a9e247b79a8eb Mon Sep 17 00:00:00 2001 From: necoro <> Date: Mon, 27 Aug 2007 07:30:38 +0000 Subject: Change to absolute_imports; Warning: definitly broken --- portato/config_parser.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'portato/config_parser.py') 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] -- cgit v1.2.3