Remove 'encoding' param from json.loads

It's ignored since Python 3.1 and we've dropped 2.7.
pull/1/head
Chris Lenk 2020-06-18 11:36:18 -04:00
parent e80d3bad2c
commit d62f5ee141
2 changed files with 2 additions and 2 deletions

View File

@ -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(

View File

@ -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(