# HG changeset patch # User Julien Cristau # Date 1450777145 -3600 # Node ID 7cb02ab4f321160db41d811982d62ef5afb0fd5a # Parent 621ad47c7c86d68a908434f05eaac16f961cca34 [hooks] fix extra_props handling on python3 The json module expects str, not bytes, so we need to do the decoding. diff -r 621ad47c7c86 -r 7cb02ab4f321 hooks/syncschema.py --- 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