diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-12-25 11:38:11 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-12-25 11:38:11 +0100 |
commit | e70ba609af6793e26857d88e496860114ccac103 (patch) | |
tree | ae2ab2892e88b640b8ff6d7ed02417431f6efdcc /module/network/Browser.py | |
parent | catch socket exceptions (diff) | |
download | pyload-e70ba609af6793e26857d88e496860114ccac103.tar.xz |
cleanup stuff
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" |