# HG changeset patch # User Ludovic Chabant # Date 1519276902 28800 # Node ID 29c51b981c1735b95c96fb42c772e79199ec06d4 # Parent a3dec0fbd9ce96a7470f8051211bf19cdf22e0ad data: Rename JSON-ifier function. diff -r a3dec0fbd9ce -r 29c51b981c17 piecrust/data/assetor.py --- a/piecrust/data/assetor.py Tue Feb 20 22:15:57 2018 -0800 +++ b/piecrust/data/assetor.py Wed Feb 21 21:21:42 2018 -0800 @@ -21,7 +21,7 @@ def __str__(self): return self.uri - def json(self): + def as_json(self): with open(self.content_item.spec, 'r', encoding='utf8') as fp: return json.load(fp)