summaryrefslogtreecommitdiff
path: root/django/db/backends/utils.py
diff options
context:
space:
mode:
authorVytis Banaitis <vytis.banaitis@gmail.com>2017-02-24 03:06:01 +0200
committerTim Graham <timograham@gmail.com>2017-02-23 20:06:01 -0500
commit3dcc3516914f25b58bde9312831f1d94b05cdb53 (patch)
treeac1093e20e9a5b59711000ec42cc4603ca4da664 /django/db/backends/utils.py
parent4cffa9a1ffb37d4de7e99a851a9ed87b3c02d229 (diff)
Refs #23919 -- Used yield from.
Diffstat (limited to 'django/db/backends/utils.py')
-rw-r--r--django/db/backends/utils.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/django/db/backends/utils.py b/django/db/backends/utils.py
index 7cb8228226..81eb8693ac 100644
--- a/django/db/backends/utils.py
+++ b/django/db/backends/utils.py
@@ -28,8 +28,7 @@ class CursorWrapper:
def __iter__(self):
with self.db.wrap_database_errors:
- for item in self.cursor:
- yield item
+ yield from self.cursor
def __enter__(self):
return self