From 56a374543a6386704b759a4f46d812432af21088 Mon Sep 17 00:00:00 2001 From: "julien.waddle@camptocamp.com" Date: Wed, 19 Oct 2022 08:49:42 +0200 Subject: [PATCH] rename urllib to fit selector --- mechanize/_urllib2_fork.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mechanize/_urllib2_fork.py b/mechanize/_urllib2_fork.py index 9f1826a..8efac6a 100644 --- a/mechanize/_urllib2_fork.py +++ b/mechanize/_urllib2_fork.py @@ -296,7 +296,7 @@ def has_proxy(self): # has non-HTTPS proxy return self.__r_host == self.__original - def get_origin_req_host(self): + def origin_req_host(self): return self.origin_req_host def is_unverifiable(self): @@ -1053,7 +1053,6 @@ def get_authorization(self, req, chal): entdig = self.get_entity_digest(req.get_data(), chal) else: entdig = None - try: selector = req.get_selector() except: