changeset 1113:29c51b981c17

data: Rename JSON-ifier function.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 21 Feb 2018 21:21:42 -0800
parents a3dec0fbd9ce
children 8af2ea1f5c34
files piecrust/data/assetor.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)