Web · Wiki · Activities · Blog · Lists · Chat · Meeting · Bugs · Git · Translate · Archive · People · Donate

Commit b3a5dadb60c362b44b865122fda10ca23a7a244d

Store metadata as pure Python data types in git

Pure Python data types can be safely parsed using ast.literal_eval(), removing
the need for unsafe evaluation.

Previously, numeric data was stored as dbus types (e.g.  "dbus.Int32(0,
variant_level=1)").
  
656656 return unicode(value)
657657 elif isinstance(value, str):
658658 return str(value)
659 return value
659 elif isinstance(value, int):
660 return int(value)
661 elif isinstance(value, float):
662 return float(value)
663 else:
664 raise TypeError('Unknown type: %s' % (type(value), ))
660665
661666
662667def _format_ref(tree_id, version_id):