Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed django.utils.itercompat.product() as per deprecation TL.

  • Loading branch information...
commit bb33ee5e7bf5325696e80e6d87e7614a9607a1b7 1 parent da6d303
@ramiro ramiro authored
Showing with 0 additions and 7 deletions.
  1. +0 −7 django/utils/
7 django/utils/
@@ -5,9 +5,7 @@
import collections
-import itertools
import sys
-import warnings
def is_iterable(x):
@@ -29,8 +27,3 @@ def is_iterator(x):
if sys.version_info >= (2, 7):
return isinstance(x, collections.Iterator)
return isinstance(x, collections.Iterator) and hasattr(x, '__iter__')
-def product(*args, **kwds):
- warnings.warn("django.utils.itercompat.product is deprecated; use the native version instead",
- DeprecationWarning, stacklevel=2)
- return itertools.product(*args, **kwds)
Please sign in to comment.
Something went wrong with that request. Please try again.