mirror of
https://github.com/django/django.git
synced 2025-03-30 03:00:45 +00:00
Removed unused GeoIP2._cache attribute.
Unused since its introduction in 79e68c225b926302ebb29c808dda8afa49856f5c.
This commit is contained in:
parent
31bef51d8e
commit
adcb3a7a27
@ -68,9 +68,7 @@ class GeoIP2:
|
|||||||
'GeoLite2-City.mmdb'; overrides the GEOIP_CITY setting.
|
'GeoLite2-City.mmdb'; overrides the GEOIP_CITY setting.
|
||||||
"""
|
"""
|
||||||
# Checking the given cache option.
|
# Checking the given cache option.
|
||||||
if cache in self.cache_options:
|
if cache not in self.cache_options:
|
||||||
self._cache = cache
|
|
||||||
else:
|
|
||||||
raise GeoIP2Exception('Invalid GeoIP caching option: %s' % cache)
|
raise GeoIP2Exception('Invalid GeoIP caching option: %s' % cache)
|
||||||
|
|
||||||
# Getting the GeoIP data path.
|
# Getting the GeoIP data path.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user