Beispiel #1
0
 def getvalue(self, value):
     """returns a value, evaluating strings as neccessary"""
     if (value.startswith("'")
             and value.endswith("'")) or (value.startswith('"')
                                          and value.endswith('"')):
         return sparse.stringeval(value)
     else:
         return value
Beispiel #2
0
 def getvalue(self, value):
     """returns a value, evaluating strings as neccessary"""
     if (value.startswith("'") and value.endswith("'")) or (value.startswith('"') and value.endswith('"')):
         return sparse.stringeval(value)
     else:
         return value