From e6e3ec383b90a2fc95037b72d26c96e5985a338f Mon Sep 17 00:00:00 2001 From: Antoine Goutenoir <antoine.goutenoir@irap.omp.eu> Date: Wed, 23 Oct 2019 00:05:11 +0200 Subject: [PATCH] There must be a PEP somewhere about this. --- flaskr/geocoder.py | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/flaskr/geocoder.py b/flaskr/geocoder.py index a27701f..b315e01 100644 --- a/flaskr/geocoder.py +++ b/flaskr/geocoder.py @@ -4,6 +4,7 @@ import time class CachedGeocoder: + def __init__(self, source="Nominatim", geocache="geocache.db"): self.geocoder = getattr(geopy.geocoders, source)() self.cache = shelve.open(geocache, writeback=True) -- libgit2 0.21.2