summaryrefslogtreecommitdiff
path: root/portato/config_parser.py
diff options
context:
space:
mode:
Diffstat (limited to 'portato/config_parser.py')
-rw-r--r--portato/config_parser.py8
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]