From 2cd2d188516475ddf256e6267cd82c495fb5c430 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Sun, 3 Apr 2016 20:37:32 -0400 Subject: Fixed W503 flake8 warnings. --- django/db/backends/postgresql/introspection.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'django/db/backends/postgresql/introspection.py') 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): """ -- cgit v1.2.1