summaryrefslogtreecommitdiff
path: root/django/contrib/gis/geoip/prototypes.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/contrib/gis/geoip/prototypes.py')
-rw-r--r--django/contrib/gis/geoip/prototypes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/gis/geoip/prototypes.py b/django/contrib/gis/geoip/prototypes.py
index 8ddcb9d974..22c17f006f 100644
--- a/django/contrib/gis/geoip/prototypes.py
+++ b/django/contrib/gis/geoip/prototypes.py
@@ -58,7 +58,7 @@ def check_record(result, func, cargs):
# Checking the pointer to the C structure, if valid pull out elements
# into a dictionary.
rec = result.contents
- record = dict((fld, getattr(rec, fld)) for fld, ctype in rec._fields_)
+ record = {fld: getattr(rec, fld) for fld, ctype in rec._fields_}
# Now converting the strings to unicode using the proper encoding.
encoding = geoip_encodings[record['charset']]