diff options
| author | Nick Pope <nick@nickpope.me.uk> | 2021-04-05 22:55:51 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-12-02 11:30:42 +0100 |
| commit | 7d5058d870bd3f2973122f39c235a10a3fda4162 (patch) | |
| tree | a22615b0b19b098b3cc7e783dbe276a61d834897 | |
| parent | adcb3a7a274156b85e79bf74d09257393101f431 (diff) | |
Removed redundant GeoIP2._check_query() calls.
| -rw-r--r-- | django/contrib/gis/geoip2/base.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/django/contrib/gis/geoip2/base.py b/django/contrib/gis/geoip2/base.py index 292acc55e6..1fd766f443 100644 --- a/django/contrib/gis/geoip2/base.py +++ b/django/contrib/gis/geoip2/base.py @@ -171,13 +171,11 @@ class GeoIP2: def country_code(self, query): "Return the country code for the given IP Address or FQDN." - enc_query = self._check_query(query, city_or_country=True) - return self.country(enc_query)['country_code'] + return self.country(query)['country_code'] def country_name(self, query): "Return the country name for the given IP Address or FQDN." - enc_query = self._check_query(query, city_or_country=True) - return self.country(enc_query)['country_name'] + return self.country(query)['country_name'] def country(self, query): """ |
