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
da6d303d
Kaydet (Commit)
da6d303d
authored
Haz 28, 2013
tarafından
Ramiro Morales
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed django.utils.simplejson as per deprecation TL.
üst
57d46bcd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
31 deletions
+0
-31
simplejson.py
django/utils/simplejson.py
+0
-31
No files found.
django/utils/simplejson.py
deleted
100644 → 0
Dosyayı görüntüle @
57d46bcd
# Django 1.5 only supports Python >= 2.6, where the standard library includes
# the json module. Previous version of Django shipped a copy for Python < 2.6.
# For backwards compatibility, we're keeping an importable json module
# at this location, with the same lookup sequence.
# Avoid shadowing the simplejson module
from
__future__
import
absolute_import
import
warnings
warnings
.
warn
(
"django.utils.simplejson is deprecated; use json instead."
,
DeprecationWarning
,
stacklevel
=
2
)
try
:
import
simplejson
except
ImportError
:
use_simplejson
=
False
else
:
# The system-installed version has priority providing it is either not an
# earlier version or it contains the C speedups.
from
json
import
__version__
as
stdlib_json_version
use_simplejson
=
(
hasattr
(
simplejson
,
'_speedups'
)
or
simplejson
.
__version__
.
split
(
'.'
)
>=
stdlib_json_version
.
split
(
'.'
))
# Make sure we copy over the version. See #17071
if
use_simplejson
:
from
simplejson
import
*
from
simplejson
import
__version__
else
:
from
json
import
*
from
json
import
__version__
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