Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[py3] Minor fix in django.contrib.gis.

  • Loading branch information...
commit 9e0a10ba77ad1737c4aaf49e5d4b4380f912bc0e 1 parent 64e2e35
Aymeric Augustin authored August 05, 2012

Showing 1 changed file with 2 additions and 3 deletions. Show diff stats Hide diff stats

  1. 5  django/contrib/gis/gdal/geometries.py
5  django/contrib/gis/gdal/geometries.py
@@ -40,7 +40,7 @@
40 40
 """
41 41
 # Python library requisites.
42 42
 import sys
43  
-from binascii import a2b_hex
  43
+from binascii import a2b_hex, b2a_hex
44 44
 from ctypes import byref, string_at, c_char_p, c_double, c_ubyte, c_void_p
45 45
 
46 46
 # Getting GDAL prerequisites
@@ -322,8 +322,7 @@ def gml(self):
322 322
     @property
323 323
     def hex(self):
324 324
         "Returns the hexadecimal representation of the WKB (a string)."
325  
-        return str(self.wkb).encode('hex').upper()
326  
-        #return b2a_hex(self.wkb).upper()
  325
+        return b2a_hex(self.wkb).upper()
327 326
 
328 327
     @property
329 328
     def json(self):

0 notes on commit 9e0a10b

Please sign in to comment.
Something went wrong with that request. Please try again.