Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
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
cpython
Commits
e01859fb
Kaydet (Commit)
e01859fb
authored
Ock 06, 2016
tarafından
Berker Peksag
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #6500: Reverting fbea8ff8db5e since it broke tests
üst
621d7fd5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
11 deletions
+2
-11
test_urllib2.py
Lib/test/test_urllib2.py
+0
-7
urllib2.py
Lib/urllib2.py
+2
-1
NEWS
Misc/NEWS
+0
-3
No files found.
Lib/test/test_urllib2.py
Dosyayı görüntüle @
e01859fb
...
...
@@ -1302,13 +1302,6 @@ class RequestTests(unittest.TestCase):
self
.
assertEqual
(
"POST"
,
self
.
post
.
get_method
())
self
.
assertEqual
(
"GET"
,
self
.
get
.
get_method
())
def
test___getattr__
(
self
):
self
.
assertEqual
(
"GET"
,
self
.
get
.
_Request__r_method
)
self
.
assertEqual
(
"http://www.python.org/~jeremy/"
,
self
.
get
.
_Request__r_full_url
)
with
self
.
assertRaises
(
AttributeError
):
self
.
get
.
_Request__r_invalid_attr
def
test_add_data
(
self
):
self
.
assertTrue
(
not
self
.
get
.
has_data
())
self
.
assertEqual
(
"GET"
,
self
.
get
.
get_method
())
...
...
Lib/urllib2.py
Dosyayı görüntüle @
e01859fb
...
...
@@ -251,7 +251,8 @@ class Request:
if
attr
[:
12
]
==
'_Request__r_'
:
name
=
attr
[
12
:]
if
hasattr
(
Request
,
'get_'
+
name
):
return
getattr
(
self
,
'get_'
+
name
)()
getattr
(
self
,
'get_'
+
name
)()
return
getattr
(
self
,
attr
)
raise
AttributeError
,
attr
def
get_method
(
self
):
...
...
Misc/NEWS
Dosyayı görüntüle @
e01859fb
...
...
@@ -36,9 +36,6 @@ Core and Builtins
Library
-------
- Issue #6500: Fix "maximum recursion depth exceeded" error caused
by urllib2.Request.__getattr__().
- Issue #24103: Fixed possible use after free in ElementTree.iterparse().
- Issue #20954: _args_from_interpreter_flags used by multiprocessing and some
...
...
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