Skip to content

Commit

Permalink
The last change shouldn't have been made here. It should have been in…
Browse files Browse the repository at this point in the history
… DT_Util.
  • Loading branch information
Jim Fulton committed May 13, 1998
1 parent bb11479 commit 03c6438
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions VSEval.py
@@ -1,7 +1,7 @@

"""Very Safe Python Expressions
"""
__rcs_id__='$Id: VSEval.py,v 1.13 1998/05/13 21:10:30 jim Exp $'
__rcs_id__='$Id: VSEval.py,v 1.14 1998/05/13 21:46:51 jim Exp $'

############################################################################
# Copyright
Expand All @@ -11,7 +11,7 @@
# rights reserved.
#
############################################################################
__version__='$Revision: 1.13 $'[11:-2]
__version__='$Revision: 1.14 $'[11:-2]

from string import join, find, split, translate
import sys, gparse, string
Expand Down Expand Up @@ -110,7 +110,7 @@ def HAS_ARG(op): ((op) >= HAVE_ARGUMENT)
self.used=tuple(used.keys())

def eval(self, mapping):
d={'_vars': mapping, '_': mapping}
d={'_vars': mapping}
code=self.code
globals=self.globals
for name in self.used:
Expand All @@ -132,6 +132,9 @@ def __call__(self, **kw):
############################################################################
#
# $Log: VSEval.py,v $
# Revision 1.14 1998/05/13 21:46:51 jim
# The last change shouldn't have been made here. It should have been in DT_Util.
#
# Revision 1.13 1998/05/13 21:10:30 jim
# Changed the way that '_' is handled. It is now an alias for the template dict.
#
Expand Down

0 comments on commit 03c6438

Please sign in to comment.