Skip to content
Browse files

Removed unused quoting/encoding in gis db backend

  • Loading branch information...
1 parent 7e5ebcc commit 690170a8b9bbcea1ae51e4020aea49987fefdbd2 @claudep claudep committed
Showing with 0 additions and 16 deletions.
  1. +0 −2 django/contrib/gis/db/backends/base.py
  2. +0 −14 django/contrib/gis/db/backends/util.py
View
2 django/contrib/gis/db/backends/base.py
@@ -90,8 +90,6 @@ def convert_geom(self, geom_val, geom_field):
# For quoting column values, rather than columns.
def geo_quote_name(self, name):
- if isinstance(name, six.text_type):
- name = name.encode('ascii')
return "'%s'" % name
# GeometryField operations
View
14 django/contrib/gis/db/backends/util.py
@@ -3,20 +3,6 @@
backends.
"""
-from django.utils import six
-
-def gqn(val):
- """
- The geographic quote name function; used for quoting tables and
- geometries (they use single rather than the double quotes of the
- backend quotename function).
- """
- if isinstance(val, six.string_types):
- if isinstance(val, six.text_type): val = val.encode('ascii')
- return "'%s'" % val
- else:
- return str(val)
-
class SpatialOperation(object):
"""
Base class for generating spatial SQL.

0 comments on commit 690170a

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