Brain fart

This commit is contained in:
James Vega 2004-01-20 04:36:49 +00:00
parent 97eadb6feb
commit 6831dafee5

View File

@ -138,7 +138,7 @@ class String(Value):
s = repr(s)
try:
v = utils.safeEval(s)
if type(v) is not str:
if not isinstance(v, basestring):
raise ValueError
self.value = v
except ValueError: # This catches utils.safeEval(s) errors too.