[hooks] fix extra_props handling on python3
The json module expects str, not bytes, so we need to do the decoding.
--- a/hooks/syncschema.py Tue Dec 22 16:16:07 2015 +0100
+++ b/hooks/syncschema.py Tue Dec 22 10:39:05 2015 +0100
@@ -463,7 +463,7 @@
'fulltextindexed': entity.fulltextindexed,
'internationalizable': entity.internationalizable}
if entity.extra_props:
- props.update(json.load(entity.extra_props))
+ props.update(json.loads(entity.extra_props.getvalue().decode('ascii')))
# entity.formula may not exist yet if we're migrating to 3.20
if hasattr(entity, 'formula'):
props['formula'] = entity.formula