From bb33ee5e7bf5325696e80e6d87e7614a9607a1b7 Mon Sep 17 00:00:00 2001 From: Ramiro Morales Date: Fri, 28 Jun 2013 13:37:14 -0300 Subject: [PATCH] Removed django.utils.itercompat.product() as per deprecation TL. --- django/utils/itercompat.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/django/utils/itercompat.py b/django/utils/itercompat.py index c50dcfb779..1df1e57cb2 100644 --- a/django/utils/itercompat.py +++ b/django/utils/itercompat.py @@ -5,9 +5,7 @@ these implementations if necessary. """ 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)