diff --git a/src/registry.py b/src/registry.py index 0a462b95f..18cfb506e 100644 --- a/src/registry.py +++ b/src/registry.py @@ -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.