[1.11.x] Fixed flake8 warning on Python 2.
This commit is contained in:
parent
76b51656e6
commit
7f5be2dc84
|
@ -21,7 +21,7 @@ class ServerSideCursorsPostgres(TestCase):
|
|||
with connection.cursor() as cursor:
|
||||
cursor.execute('SELECT {fields} FROM pg_cursors;'.format(fields=self.cursor_fields))
|
||||
cursors = cursor.fetchall()
|
||||
return [self.PostgresCursor._make(cursor) for cursor in cursors]
|
||||
return [self.PostgresCursor._make(c) for c in cursors]
|
||||
|
||||
def test_server_side_cursor(self):
|
||||
persons = Person.objects.iterator()
|
||||
|
|
Loading…
Reference in New Issue