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:
Ashwin Ramaswami 2019-09-13 04:40:08 -07:00 committed by Stéphane Wirtel
parent bb41147eab
commit ff2e182865
7 changed files with 84 additions and 26 deletions

View file

@ -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