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
4a461d49
Kaydet (Commit)
4a461d49
authored
Eyl 03, 2017
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Advanced deprecation warnings for Django 2.1.
üst
5446b720
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
8 deletions
+5
-8
deprecation.py
django/utils/deprecation.py
+1
-4
deprecation.txt
docs/internals/deprecation.txt
+3
-0
runtests.py
tests/runtests.py
+1
-4
No files found.
django/utils/deprecation.py
Dosyayı görüntüle @
4a461d49
...
@@ -6,13 +6,10 @@ class RemovedInDjango30Warning(PendingDeprecationWarning):
...
@@ -6,13 +6,10 @@ class RemovedInDjango30Warning(PendingDeprecationWarning):
pass
pass
class
RemovedIn
Django21
Warning
(
DeprecationWarning
):
class
RemovedIn
NextVersion
Warning
(
DeprecationWarning
):
pass
pass
RemovedInNextVersionWarning
=
RemovedInDjango21Warning
class
warn_about_renamed_method
:
class
warn_about_renamed_method
:
def
__init__
(
self
,
class_name
,
old_method_name
,
new_method_name
,
deprecation_warning
):
def
__init__
(
self
,
class_name
,
old_method_name
,
new_method_name
,
deprecation_warning
):
self
.
class_name
=
class_name
self
.
class_name
=
class_name
...
...
docs/internals/deprecation.txt
Dosyayı görüntüle @
4a461d49
...
@@ -29,6 +29,9 @@ details on these changes.
...
@@ -29,6 +29,9 @@ details on these changes.
* The ``field_name`` keyword argument of ``QuerySet.earliest()`` and
* The ``field_name`` keyword argument of ``QuerySet.earliest()`` and
``latest()`` will be removed.
``latest()`` will be removed.
See the :ref:`Django 2.1 release notes <deprecated-features-2.1>` for more
details on these changes.
.. _deprecation-removed-in-2.1:
.. _deprecation-removed-in-2.1:
2.1
2.1
...
...
tests/runtests.py
Dosyayı görüntüle @
4a461d49
...
@@ -17,14 +17,11 @@ from django.test import TestCase, TransactionTestCase
...
@@ -17,14 +17,11 @@ from django.test import TestCase, TransactionTestCase
from
django.test.runner
import
default_test_processes
from
django.test.runner
import
default_test_processes
from
django.test.selenium
import
SeleniumTestCaseBase
from
django.test.selenium
import
SeleniumTestCaseBase
from
django.test.utils
import
get_runner
from
django.test.utils
import
get_runner
from
django.utils.deprecation
import
(
from
django.utils.deprecation
import
RemovedInDjango30Warning
RemovedInDjango21Warning
,
RemovedInDjango30Warning
,
)
from
django.utils.log
import
DEFAULT_LOGGING
from
django.utils.log
import
DEFAULT_LOGGING
# Make deprecation warnings errors to ensure no usage of deprecated features.
# Make deprecation warnings errors to ensure no usage of deprecated features.
warnings
.
simplefilter
(
"error"
,
RemovedInDjango30Warning
)
warnings
.
simplefilter
(
"error"
,
RemovedInDjango30Warning
)
warnings
.
simplefilter
(
"error"
,
RemovedInDjango21Warning
)
# Make runtime warning errors to ensure no usage of error prone patterns.
# Make runtime warning errors to ensure no usage of error prone patterns.
warnings
.
simplefilter
(
"error"
,
RuntimeWarning
)
warnings
.
simplefilter
(
"error"
,
RuntimeWarning
)
# Ignore known warnings in test dependencies.
# Ignore known warnings in test dependencies.
...
...
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