diff options
| author | Nick Pope <nick@nickpope.me.uk> | 2021-04-05 00:46:15 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-12-02 11:30:32 +0100 |
| commit | adcb3a7a274156b85e79bf74d09257393101f431 (patch) | |
| tree | f137d280485fba3e65fe9c367cb1ab88e9a9205d | |
| parent | 31bef51d8ea5e3bf650de1495ae1f0566670b8f3 (diff) | |
Removed unused GeoIP2._cache attribute.
Unused since its introduction in 79e68c225b926302ebb29c808dda8afa49856f5c.
| -rw-r--r-- | django/contrib/gis/geoip2/base.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/django/contrib/gis/geoip2/base.py b/django/contrib/gis/geoip2/base.py index 7d17766c25..292acc55e6 100644 --- a/django/contrib/gis/geoip2/base.py +++ b/django/contrib/gis/geoip2/base.py @@ -68,9 +68,7 @@ class GeoIP2: 'GeoLite2-City.mmdb'; overrides the GEOIP_CITY setting. """ # Checking the given cache option. - if cache in self.cache_options: - self._cache = cache - else: + if cache not in self.cache_options: raise GeoIP2Exception('Invalid GeoIP caching option: %s' % cache) # Getting the GeoIP data path. |
