diff --git a/src/commoncode/resource.py b/src/commoncode/resource.py index b944bce1..1c5b78a1 100644 --- a/src/commoncode/resource.py +++ b/src/commoncode/resource.py @@ -759,7 +759,7 @@ def _load_resource(self, rid): with open(cache_location, 'rb') as cached: # TODO: Use custom json encoder to encode JSON list as a tuple # TODO: Consider using simplejson - data = json.load(cached, object_pairs_hook=OrderedDict, encoding='utf-8') + data = json.load(cached, object_pairs_hook=OrderedDict) return self.resource_class(**data) except Exception: with open(cache_location, 'rb') as cached: @@ -1475,7 +1475,7 @@ def _get_scan_data_helper(self, location): # to have support for caching at all? location = abspath(normpath(expanduser(location))) with io.open(location, 'rb') as f: - scan_data = json.load(f, object_pairs_hook=OrderedDict, encoding='utf-8') + scan_data = json.load(f, object_pairs_hook=OrderedDict) return scan_data def _get_scan_data(self, location):