TO deal with Python3 returning not list but dict_items.
This commit is contained in:
@@ -305,7 +305,7 @@ class MetaData(object):
|
||||
raise NotImplementedError
|
||||
|
||||
def dumps(self):
|
||||
return json.dumps(self.items(), indent=2)
|
||||
return json.dumps(list(self.items()), indent=2)
|
||||
|
||||
def with_descriptor(self, descriptor):
|
||||
'''
|
||||
|
||||
Reference in New Issue
Block a user