Skip to content
Browse files

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

  • Loading branch information...
1 parent 64e2e35 commit 9e0a10ba77ad1737c4aaf49e5d4b4380f912bc0e @aaugustin aaugustin committed
Showing with 2 additions and 3 deletions.
  1. +2 −3 django/contrib/gis/gdal/
5 django/contrib/gis/gdal/
@@ -40,7 +40,7 @@
# Python library requisites.
import sys
-from binascii import a2b_hex
+from binascii import a2b_hex, b2a_hex
from ctypes import byref, string_at, c_char_p, c_double, c_ubyte, c_void_p
# Getting GDAL prerequisites
@@ -322,8 +322,7 @@ def gml(self):
def hex(self):
"Returns the hexadecimal representation of the WKB (a string)."
- return str(self.wkb).encode('hex').upper()
- #return b2a_hex(self.wkb).upper()
+ return b2a_hex(self.wkb).upper()
def json(self):

0 comments on commit 9e0a10b

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