diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-12-11 17:08:29 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-12-11 17:08:29 +0100 |
commit | 1de45d9f4f2a39e205dd99e0dcf8b0c323537fea (patch) | |
tree | b83d12fd13a27d798326d8a5e2fda136cab009e4 /pyload/network/XDCCRequest.py | |
parent | Bucket and CookieJar from 0.5.0 (diff) | |
download | pyload-1de45d9f4f2a39e205dd99e0dcf8b0c323537fea.tar.xz |
Spare code cosmetics
Diffstat (limited to 'pyload/network/XDCCRequest.py')
-rw-r--r-- | pyload/network/XDCCRequest.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pyload/network/XDCCRequest.py b/pyload/network/XDCCRequest.py index 004f2d07f..7ac8165db 100644 --- a/pyload/network/XDCCRequest.py +++ b/pyload/network/XDCCRequest.py @@ -46,7 +46,7 @@ class XDCCRequest(object): return socket.socket() - def download(self, ip, port, filename, irc, progressNotify=None): + def download(self, ip, port, filename, irc, progress=None): ircbuffer = "" lastUpdate = time() @@ -93,8 +93,8 @@ class XDCCRequest(object): cumRecvLen = 0 lastUpdate = now - if progressNotify: - progressNotify(self.percent) + if progress: + progress(self.percent) if not data: break |