Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
bb33ee5e
Kaydet (Commit)
bb33ee5e
authored
Haz 28, 2013
tarafından
Ramiro Morales
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed django.utils.itercompat.product() as per deprecation TL.
üst
da6d303d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
7 deletions
+0
-7
itercompat.py
django/utils/itercompat.py
+0
-7
No files found.
django/utils/itercompat.py
Dosyayı görüntüle @
bb33ee5e
...
...
@@ -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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment