mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-13 14:24:08 +00:00
avoid recent Python dialect
This commit is contained in:
@@ -84,7 +84,8 @@ class GenericResponse:
|
|||||||
assert set(r.keys()) == {'geocoding', 'geojson', '__geocoding'}, \
|
assert set(r.keys()) == {'geocoding', 'geojson', '__geocoding'}, \
|
||||||
f"Unexpected keys in result: {r.keys()}"
|
f"Unexpected keys in result: {r.keys()}"
|
||||||
check_for_attributes(r['geocoding'], 'geojson', 'absent')
|
check_for_attributes(r['geocoding'], 'geojson', 'absent')
|
||||||
r |= r.pop('geocoding')
|
inner = r.pop('geocoding')
|
||||||
|
r.update(inner)
|
||||||
|
|
||||||
|
|
||||||
def assert_address_field(self, idx, field, value):
|
def assert_address_field(self, idx, field, value):
|
||||||
|
|||||||
Reference in New Issue
Block a user