Lines Matching refs:val
248 def _val_to_py(val):
250 if isinstance(val, collections.Sequence) and len(val) == 2:
251 if val[0] == "uuid":
252 return uuid.UUID(val[1])
253 elif val[0] == "set":
254 return [_val_to_py(x) for x in val[1]]
255 elif val[0] == "map":
256 return {_val_to_py(x): _val_to_py(y) for x, y in val[1]}
257 return val