Advertisement
Guest User

Untitled

a guest
Aug 25th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. --- interpreterbase.py.orig 2019-08-13 17:41:05.497165796 +0300
  2. +++ interpreterbase.py 2019-08-13 17:41:29.737166739 +0300
  3. @@ -1061,7 +1061,7 @@
  4. raise InvalidCode('First argument to set_variable must be a string.')
  5. if not self.is_assignable(variable):
  6. raise InvalidCode('Assigned value not of assignable type.')
  7. - if re.match('[_a-zA-Z][_0-9a-zA-Z]*$', varname) is None:
  8. + if re.match('[+_a-zA-Z][+_0-9a-zA-Z]*$', varname) is None:
  9. raise InvalidCode('Invalid variable name: ' + varname)
  10. if varname in self.builtin:
  11. raise InvalidCode('Tried to overwrite internal variable "%s"' % varname)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement