aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Blanchard <tchaik@gmx.com>2017-07-02 12:53:08 +0200
committerMartin Blanchard <tchaik@gmx.com>2017-09-15 22:05:44 +0200
commit71deffab18c0d3b0b54f604f68c743a33c655f9d (patch)
tree95044cc2c419468a243fb45c0cb0ae6ddc2b5216
parent6b517475f517cb5d74c0ebff1edaf39c1e48b5c7 (diff)
downloadmeson-71deffab18c0d3b0b54f604f68c743a33c655f9d.zip
meson-71deffab18c0d3b0b54f604f68c743a33c655f9d.tar.gz
meson-71deffab18c0d3b0b54f604f68c743a33c655f9d.tar.bz2
get-unquoted: Fix indentation and remove useless arithmetic
-rw-r--r--mesonbuild/interpreter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py
index 11d5131..e0aebc1 100644
--- a/mesonbuild/interpreter.py
+++ b/mesonbuild/interpreter.py
@@ -235,7 +235,7 @@ class ConfigurationDataHolder(MutableInterpreterObject):
else:
raise InterpreterException('Entry %s not in configuration data.' % name)
if val[0] == '"' and val[-1] == '"':
- return val[1:len(val)-1]
+ return val[1:-1]
return val
def get(self, name):