diff options
author | mkaay <mkaay@mkaay.de> | 2010-09-14 20:36:29 +0200 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2010-09-14 20:36:29 +0200 |
commit | c811b78e4c4a1a112542ed10e2a713a3cd110128 (patch) | |
tree | 54c2141bececd22f3ac28d1df8858618e4889ba2 /module/SafeEval.py | |
parent | extended parser (diff) | |
download | pyload-c811b78e4c4a1a112542ed10e2a713a3cd110128.tar.xz |
extended safe_eval
Diffstat (limited to 'module/SafeEval.py')
-rw-r--r-- | module/SafeEval.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/module/SafeEval.py b/module/SafeEval.py index bf2576502..8ec9766e6 100644 --- a/module/SafeEval.py +++ b/module/SafeEval.py @@ -44,7 +44,9 @@ class SafeEvalWithErrors(SafeEval): node.__class__,node) def visitName(self,node, **kw): - if node.name == "True": + if node.name == "None": + return None + elif node.name == "True": return True elif node.name == "False": return False |