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
7c66aaa2
Kaydet (Commit)
7c66aaa2
authored
Ara 28, 2018
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Refs #28137 -- Removed HttpRequest.xreadlines() per deprecation timeline.
üst
8045dff9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
9 deletions
+2
-9
request.py
django/http/request.py
+0
-9
3.0.txt
docs/releases/3.0.txt
+2
-0
No files found.
django/http/request.py
Dosyayı görüntüle @
7c66aaa2
import
copy
import
copy
import
re
import
re
import
warnings
from
io
import
BytesIO
from
io
import
BytesIO
from
itertools
import
chain
from
itertools
import
chain
from
urllib.parse
import
quote
,
urlencode
,
urljoin
,
urlsplit
from
urllib.parse
import
quote
,
urlencode
,
urljoin
,
urlsplit
...
@@ -15,7 +14,6 @@ from django.http.multipartparser import MultiPartParser, MultiPartParserError
...
@@ -15,7 +14,6 @@ from django.http.multipartparser import MultiPartParser, MultiPartParserError
from
django.utils.datastructures
import
(
from
django.utils.datastructures
import
(
CaseInsensitiveMapping
,
ImmutableList
,
MultiValueDict
,
CaseInsensitiveMapping
,
ImmutableList
,
MultiValueDict
,
)
)
from
django.utils.deprecation
import
RemovedInDjango30Warning
from
django.utils.encoding
import
escape_uri_path
,
iri_to_uri
from
django.utils.encoding
import
escape_uri_path
,
iri_to_uri
from
django.utils.functional
import
cached_property
from
django.utils.functional
import
cached_property
from
django.utils.http
import
is_same_domain
,
limited_parse_qsl
from
django.utils.http
import
is_same_domain
,
limited_parse_qsl
...
@@ -354,13 +352,6 @@ class HttpRequest:
...
@@ -354,13 +352,6 @@ class HttpRequest:
def
__iter__
(
self
):
def
__iter__
(
self
):
return
iter
(
self
.
readline
,
b
''
)
return
iter
(
self
.
readline
,
b
''
)
def
xreadlines
(
self
):
warnings
.
warn
(
'HttpRequest.xreadlines() is deprecated in favor of iterating the '
'request.'
,
RemovedInDjango30Warning
,
stacklevel
=
2
,
)
yield
from
self
def
readlines
(
self
):
def
readlines
(
self
):
return
list
(
self
)
return
list
(
self
)
...
...
docs/releases/3.0.txt
Dosyayı görüntüle @
7c66aaa2
...
@@ -242,6 +242,8 @@ to remove usage of these features.
...
@@ -242,6 +242,8 @@ to remove usage of these features.
* The ``DEFAULT_CONTENT_TYPE`` setting is removed.
* The ``DEFAULT_CONTENT_TYPE`` setting is removed.
* ``HttpRequest.xreadlines()`` is removed.
See :ref:`deprecated-features-2.1` for details on these changes, including how
See :ref:`deprecated-features-2.1` for details on these changes, including how
to remove usage of these features.
to remove usage of these features.
...
...
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