diff options
Diffstat (limited to 'module/network/Browser.py')
-rw-r--r-- | module/network/Browser.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/module/network/Browser.py b/module/network/Browser.py index 512a437ed..23fe4993c 100644 --- a/module/network/Browser.py +++ b/module/network/Browser.py @@ -131,11 +131,6 @@ class Browser(object): d.addCallback(self._removeConnection, d) return d - #compatibility wrapper - def clean(self): - self.log.warning("Browser: deprecated call 'clean'") - print_stack() - def load(self, url, get={}, post={}, ref=True, cookies=True, just_header=False, no_post_encode=False, raw_cookies={}): self.log.warning("Browser: deprecated call 'load'") print_stack() @@ -152,6 +147,10 @@ class Browser(object): return filename + def clean(self): + """ cleanup """ + self.http.clean() + if __name__ == "__main__": browser = Browser()#proxies={"socks5": "localhost:5000"}) ip = "http://www.whatismyip.com/automation/n09230945.asp" |