From 8a81a61c2d46277137fead57b4ab39670b63074d Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 7 Feb 2014 14:01:17 +0100 Subject: [PATCH] Use ExtendedInterpolation for config --- qutebrowser/utils/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qutebrowser/utils/config.py b/qutebrowser/utils/config.py index c86927133..e672c162f 100644 --- a/qutebrowser/utils/config.py +++ b/qutebrowser/utils/config.py @@ -27,7 +27,7 @@ import os.path import os import io import logging -from configparser import ConfigParser +from configparser import ConfigParser, ExtendedInterpolation config = None colordict = {} @@ -168,8 +168,8 @@ class Config(ConfigParser): configdir -- directory to store the config in. """ - super().__init__() - self.default_cp = ConfigParser() + super().__init__(interpolation=ExtendedInterpolation()) + self.default_cp = ConfigParser(interpolation=ExtendedInterpolation()) self.default_cp.optionxform = lambda opt: opt # be case-insensitive self.default_cp.read_string(default_config) if not self.configdir: