diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2015-12-04 11:56:02 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2015-12-04 11:56:02 +0200 |
commit | 66ff4a0e9134b7c7c646092c77351268bd121dbe (patch) | |
tree | c9d7e6f3011a34aa8bc370969d7344adb046079e /interpreter.py | |
parent | 33558cd9799d7e1d056ccd5946c8cb575c760ffd (diff) | |
parent | b15aa49af2c30921368cf6bf330919da476762eb (diff) | |
download | meson-66ff4a0e9134b7c7c646092c77351268bd121dbe.zip meson-66ff4a0e9134b7c7c646092c77351268bd121dbe.tar.gz meson-66ff4a0e9134b7c7c646092c77351268bd121dbe.tar.bz2 |
Merge Python 3.3 fix.
Diffstat (limited to 'interpreter.py')
-rw-r--r-- | interpreter.py | 2 |
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) |