diff options
author | Tim Graham <timograham@gmail.com> | 2016-04-03 20:37:32 -0400 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2016-04-04 17:14:26 -0400 |
commit | 2cd2d188516475ddf256e6267cd82c495fb5c430 (patch) | |
tree | 1a7c3c167c1576923c7c4f5544495face5bd7327 /django/db/backends/postgresql/introspection.py | |
parent | d356bb653f4d90ae9809e5a051791ded39010c38 (diff) | |
download | django-2cd2d188516475ddf256e6267cd82c495fb5c430.tar.gz |
Fixed W503 flake8 warnings.
Diffstat (limited to 'django/db/backends/postgresql/introspection.py')
-rw-r--r-- | django/db/backends/postgresql/introspection.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/django/db/backends/postgresql/introspection.py b/django/db/backends/postgresql/introspection.py index 90b7090464..103adb50f6 100644 --- a/django/db/backends/postgresql/introspection.py +++ b/django/db/backends/postgresql/introspection.py @@ -78,9 +78,13 @@ class DatabaseIntrospection(BaseDatabaseIntrospection): WHERE table_name = %s""", [table_name]) field_map = {line[0]: line[1:] for line in cursor.fetchall()} cursor.execute("SELECT * FROM %s LIMIT 1" % self.connection.ops.quote_name(table_name)) - return [FieldInfo(*((force_text(line[0]),) + line[1:6] - + (field_map[force_text(line[0])][0] == 'YES', field_map[force_text(line[0])][1]))) - for line in cursor.description] + return [ + FieldInfo(*( + (force_text(line[0]),) + + line[1:6] + + (field_map[force_text(line[0])][0] == 'YES', field_map[force_text(line[0])][1]) + )) for line in cursor.description + ] def get_relations(self, cursor, table_name): """ |