Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 9e0a10ba77ad1737c4aaf49e5d4b4380f912bc0e 1 parent 64e2e35
@aaugustin aaugustin authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 django/contrib/gis/gdal/geometries.py
View
5 django/contrib/gis/gdal/geometries.py
@@ -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):
@property
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()
@property
def json(self):
Please sign in to comment.
Something went wrong with that request. Please try again.