Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:16.0:FactoryCandidates
python-geojson
geojson-py39-jsonload.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File geojson-py39-jsonload.patch of Package python-geojson
From b8bdcb4136e3ffe916ec30bf8411368505ed4ff1 Mon Sep 17 00:00:00 2001 From: Karthikeyan Singaravelan <tir.karthi@gmail.com> Date: Fri, 7 Aug 2020 13:19:38 +0000 Subject: [PATCH] Remove encoding parameter from json.load for Python 3.9 compatibility. --- tests/test_features.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_features.py b/tests/test_features.py index 529de70..e2b56e9 100644 --- a/tests/test_features.py +++ b/tests/test_features.py @@ -82,7 +82,7 @@ def test_feature_class(self): ' "properties": {"summary": "The first feature",' ' "link": "http://example.org/features/1",' ' "title": "Feature 1"}}') - feature = geojson.loads(json, object_hook=factory, encoding="utf-8") + feature = geojson.loads(json, object_hook=factory) self.assertEqual(repr(type(feature)), "<class 'geojson.examples.SimpleWebFeature'>") self.assertEqual(feature.id, '1')
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor