mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
bpo-12707: deprecate info(), geturl(), getcode() methods in favor of headers, url, and status properties for HTTPResponse and addinfourl (GH-11447)
Co-Authored-By: epicfaace <aramaswamis@gmail.com>
This commit is contained in:
parent
bb41147eab
commit
ff2e182865
7 changed files with 84 additions and 26 deletions
|
@ -73,6 +73,10 @@ class addinfourl(addinfo):
|
|||
self.url = url
|
||||
self.code = code
|
||||
|
||||
@property
|
||||
def status(self):
|
||||
return self.code
|
||||
|
||||
def getcode(self):
|
||||
return self.code
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue