aboutsummaryrefslogtreecommitdiff
path: root/interpreter.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-12-04 11:56:02 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2015-12-04 11:56:02 +0200
commit66ff4a0e9134b7c7c646092c77351268bd121dbe (patch)
treec9d7e6f3011a34aa8bc370969d7344adb046079e /interpreter.py
parent33558cd9799d7e1d056ccd5946c8cb575c760ffd (diff)
parentb15aa49af2c30921368cf6bf330919da476762eb (diff)
downloadmeson-66ff4a0e9134b7c7c646092c77351268bd121dbe.zip
meson-66ff4a0e9134b7c7c646092c77351268bd121dbe.tar.gz
meson-66ff4a0e9134b7c7c646092c77351268bd121dbe.tar.bz2
Merge Python 3.3 fix.
Diffstat (limited to 'interpreter.py')
-rw-r--r--interpreter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/interpreter.py b/interpreter.py
index cacfe05..f4c09a4 100644
--- a/interpreter.py
+++ b/interpreter.py
@@ -1150,7 +1150,7 @@ class Interpreter():
raise InvalidCode('First argument to set_variable must be a string.')
if not self.is_assignable(variable):
raise InvalidCode('Assigned value not of assignable type.')
- if re.fullmatch('[_a-zA-Z][_0-9a-zA-Z]*', varname) is None:
+ if re.match('[_a-zA-Z][_0-9a-zA-Z]*$', varname) is None:
raise InvalidCode('Invalid variable name: ' + varname)
if varname in self.builtin:
raise InvalidCode('Tried to overwrite internal variable "%s"' % varname)