diff options
author | Claude Paroz <claude@2xlibre.net> | 2017-03-04 15:47:49 +0100 |
---|---|---|
committer | Claude Paroz <claude@2xlibre.net> | 2017-03-04 18:18:21 +0100 |
commit | 8346680e1ca4a8ddc8190baf3f5f944f6418d5cf (patch) | |
tree | ed12bc1d1077a65c1b32d410bc267266f6e3e4f9 /django/db/backends/mysql/introspection.py | |
parent | 86de930f413e0ad902e11d78ac988e6743202ea6 (diff) | |
download | django-8346680e1ca4a8ddc8190baf3f5f944f6418d5cf.tar.gz |
Refs #27795 -- Removed unneeded force_text calls
Thanks Tim Graham for the review.
Diffstat (limited to 'django/db/backends/mysql/introspection.py')
-rw-r--r-- | django/db/backends/mysql/introspection.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/django/db/backends/mysql/introspection.py b/django/db/backends/mysql/introspection.py index 42a47d2dad..9e72bdc1f8 100644 --- a/django/db/backends/mysql/introspection.py +++ b/django/db/backends/mysql/introspection.py @@ -9,7 +9,6 @@ from django.db.backends.base.introspection import ( from django.db.models.indexes import Index from django.utils.datastructures import OrderedSet from django.utils.deprecation import RemovedInDjango21Warning -from django.utils.encoding import force_text FieldInfo = namedtuple('FieldInfo', FieldInfo._fields + ('extra',)) InfoLine = namedtuple('InfoLine', 'col_name data_type max_len num_prec num_scale extra column_default') @@ -79,7 +78,7 @@ class DatabaseIntrospection(BaseDatabaseIntrospection): fields = [] for line in cursor.description: - col_name = force_text(line[0]) + col_name = line[0] fields.append( FieldInfo(*( (col_name,) + |