diff options
Diffstat (limited to 'module/network/FTPBase.py')
-rw-r--r-- | module/network/FTPBase.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/network/FTPBase.py b/module/network/FTPBase.py index ce4627d0c..d8fc5a20d 100644 --- a/module/network/FTPBase.py +++ b/module/network/FTPBase.py @@ -43,10 +43,10 @@ class FTPBase(FTP): proxytype = None proxy = None - if proxies.has_key("socks5"): + if "socks5" in proxies: proxytype = socks.PROXY_TYPE_SOCKS5 proxy = proxies["socks5"] - elif proxies.has_key("socks4"): + elif "socks4" in proxies: proxytype = socks.PROXY_TYPE_SOCKS4 proxy = proxies["socks4"] if proxytype: |