Remove 'encoding' param from json.loads
It's ignored since Python 3.1 and we've dropped 2.7.pull/1/head
parent
e80d3bad2c
commit
d62f5ee141
|
@ -28,7 +28,7 @@ class MockTAXIICollectionEndpoint(Collection):
|
|||
def add_objects(self, bundle):
|
||||
self._verify_can_write()
|
||||
if isinstance(bundle, six.string_types):
|
||||
bundle = json.loads(bundle, encoding='utf-8')
|
||||
bundle = json.loads(bundle)
|
||||
for object in bundle.get("objects", []):
|
||||
self.objects.append(object)
|
||||
self.manifests.append(
|
||||
|
|
|
@ -28,7 +28,7 @@ class MockTAXIICollectionEndpoint(Collection):
|
|||
def add_objects(self, bundle):
|
||||
self._verify_can_write()
|
||||
if isinstance(bundle, six.string_types):
|
||||
bundle = json.loads(bundle, encoding='utf-8')
|
||||
bundle = json.loads(bundle)
|
||||
for object in bundle.get("objects", []):
|
||||
self.objects.append(object)
|
||||
self.manifests.append(
|
||||
|
|
Loading…
Reference in New Issue