[1.11.x] Fixed flake8 warning on Python 2.

This commit is contained in:
Tim Graham 2017-04-03 22:33:46 -04:00
parent 76b51656e6
commit 7f5be2dc84
1 changed files with 1 additions and 1 deletions

View File

@ -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()