From a254b4c00167eebe3e39a8d53a5570bf3068b9eb Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 19 Jun 2014 10:11:14 +0200 Subject: [PATCH] Fix _get_constant in setupcommon --- scripts/setupcommon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/setupcommon.py b/scripts/setupcommon.py index c57eb7ec3..52c1664a0 100644 --- a/scripts/setupcommon.py +++ b/scripts/setupcommon.py @@ -53,7 +53,7 @@ def _get_constant(name): field_re = re.compile(r'__{}__\s+=\s+(.*)'.format(re.escape(name))) path = os.path.join(BASEDIR, 'qutebrowser', '__init__.py') line = field_re.search(read_file(path)).group(1) - value = str(ast.literal_eval(line)) + value = ast.literal_eval(line) return value