mirror of
https://github.com/django/django.git
synced 2025-11-24 04:47:12 +00:00
[py3] Replaced unicode/str by six.text_type/bytes.
This commit is contained in:
parent
3cb2457f46
commit
bdca5ea345
96 changed files with 376 additions and 294 deletions
|
|
@ -81,7 +81,7 @@ class OGRGeometry(GDALBase):
|
|||
# Constructing the geometry,
|
||||
if str_instance:
|
||||
# Checking if unicode
|
||||
if isinstance(geom_input, unicode):
|
||||
if isinstance(geom_input, six.text_type):
|
||||
# Encoding to ASCII, WKT or HEX doesn't need any more.
|
||||
geom_input = geom_input.encode('ascii')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue