diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-10-17 05:27:34 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-10-17 05:27:34 -0700 |
commit | 98788d3c3af9f6cce2b94c276d17726f46608b08 (patch) | |
tree | 0f6be6fe1458995424e06ed11e178a515d922366 /django/db/backends/mysql/introspection.py | |
parent | a921f0634583e2f87475e802e2674e7159b4f25b (diff) | |
download | django-98788d3c3af9f6cce2b94c276d17726f46608b08.tar.gz |
Remove some unnecesary uses of bool
Diffstat (limited to 'django/db/backends/mysql/introspection.py')
-rw-r--r-- | django/db/backends/mysql/introspection.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/mysql/introspection.py b/django/db/backends/mysql/introspection.py index 6e3b8d4ea0..14aea3b475 100644 --- a/django/db/backends/mysql/introspection.py +++ b/django/db/backends/mysql/introspection.py @@ -120,7 +120,7 @@ class DatabaseIntrospection(BaseDatabaseIntrospection): # It's possible to have the unique and PK constraints in separate indexes. if row[2] == 'PRIMARY': indexes[row[4]]['primary_key'] = True - if not bool(row[1]): + if not row[1]: indexes[row[4]]['unique'] = True return indexes |