diff options
author | Christoph Gohlke <cgohlke@uci.edu> | 2013-09-08 16:29:30 -0700 |
---|---|---|
committer | Christoph Gohlke <cgohlke@uci.edu> | 2013-09-08 16:29:30 -0700 |
commit | 0b7191397e7893011fda16402e1fbd56afb911d3 (patch) | |
tree | 3d3abe44ad086b557c580753bc24e6b240697e4c /numpy/lib/utils.py | |
parent | 73fbfb2e168e76e8a0550fbaa680f6be10ba9459 (diff) | |
download | numpy-0b7191397e7893011fda16402e1fbd56afb911d3.tar.gz |
ENH: add support for Python 3.4 ast.NameConstant
Diffstat (limited to 'numpy/lib/utils.py')
-rw-r--r-- | numpy/lib/utils.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/lib/utils.py b/numpy/lib/utils.py index 1b968f1fc..bd5d04430 100644 --- a/numpy/lib/utils.py +++ b/numpy/lib/utils.py @@ -1062,6 +1062,9 @@ class SafeEval(object): else: raise SyntaxError("Unknown name: %s" % node.id) + def visitNameConstant(self, node): + return node.value + def safe_eval(source): """ Protected string evaluation. |