summaryrefslogtreecommitdiffstats
path: root/deluge/ui/common.py
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2014-09-03 11:38:31 +0100
committerCalum Lind <calumlind+deluge@gmail.com>2014-09-03 17:22:38 +0100
commit95f859673ee2d0cfb052f92f8341aa4cf89ae57a (patch)
treef5d4bfd3de15e292705c2563469958a26d79377a /deluge/ui/common.py
parent682acc11ecdf807750367ceeb0ae93fd98c26219 (diff)
downloaddeluge-95f859673ee2d0cfb052f92f8341aa4cf89ae57a.tar.gz
deluge-95f859673ee2d0cfb052f92f8341aa4cf89ae57a.tar.bz2
deluge-95f859673ee2d0cfb052f92f8341aa4cf89ae57a.zip
[Python-Modernize] lib2to3.fixes.fix_has_key
Diffstat (limited to 'deluge/ui/common.py')
-rw-r--r--deluge/ui/common.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/deluge/ui/common.py b/deluge/ui/common.py
index 9ad208e28..ed65e988a 100644
--- a/deluge/ui/common.py
+++ b/deluge/ui/common.py
@@ -115,7 +115,7 @@ class TorrentInfo(object):
# Get list of files from torrent info
paths = {}
dirs = {}
- if self.__m_metadata["info"].has_key("files"):
+ if "files" in self.__m_metadata["info"]:
prefix = ""
if len(self.__m_metadata["info"]["files"]) > 1:
prefix = self.__m_name
@@ -176,7 +176,7 @@ class TorrentInfo(object):
}
self.__m_files = []
- if self.__m_metadata["info"].has_key("files"):
+ if "files" in self.__m_metadata["info"]:
prefix = ""
if len(self.__m_metadata["info"]["files"]) > 1:
prefix = self.__m_name