summaryrefslogtreecommitdiff
path: root/django/db/backends/mysql/compiler.py
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2013-09-02 12:10:03 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2013-09-02 12:11:16 +0200
commit868b4c921c3c129085842aafc1857fccdd04f529 (patch)
tree1599ecee5438c0150a6b0158c217f7efab446695 /django/db/backends/mysql/compiler.py
parent365c3e8b73eab825a8ecd0cf8046e1a0824ccd45 (diff)
downloaddjango-868b4c921c3c129085842aafc1857fccdd04f529.tar.gz
Used six.moves.zip_longest, new in six 1.4.0.
Diffstat (limited to 'django/db/backends/mysql/compiler.py')
-rw-r--r--django/db/backends/mysql/compiler.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/django/db/backends/mysql/compiler.py b/django/db/backends/mysql/compiler.py
index ee7fbe2575..609573442c 100644
--- a/django/db/backends/mysql/compiler.py
+++ b/django/db/backends/mysql/compiler.py
@@ -1,9 +1,5 @@
-try:
- from itertools import zip_longest
-except ImportError:
- from itertools import izip_longest as zip_longest
-
from django.db.models.sql import compiler
+from django.utils.six.moves import zip_longest
class SQLCompiler(compiler.SQLCompiler):