From b599ed263da76a58ad80c68be46c51c9fb89a1d1 Mon Sep 17 00:00:00 2001 From: Stefano Date: Fri, 18 Apr 2014 16:08:02 +0200 Subject: Using in instead of has_key --- module/plugins/hoster/EgoFilesCom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/plugins/hoster/EgoFilesCom.py') diff --git a/module/plugins/hoster/EgoFilesCom.py b/module/plugins/hoster/EgoFilesCom.py index d8168c980..68a95b33a 100644 --- a/module/plugins/hoster/EgoFilesCom.py +++ b/module/plugins/hoster/EgoFilesCom.py @@ -27,7 +27,7 @@ class EgoFilesCom(SimpleHoster): __name__ = "EgoFilesCom" __type__ = "hoster" __pattern__ = r'https?://(?:www\.)?egofiles.com/(\w+)' - __version__ = "0.14" + __version__ = "0.15" __description__ = """Egofiles.com hoster plugin""" __author_name__ = "stickell" __author_mail__ = "l.stickell@yahoo.it" @@ -83,7 +83,7 @@ class EgoFilesCom(SimpleHoster): def handlePremium(self): header = self.load(self.pyfile.url, just_header=True) - if header.has_key('location'): + if 'location' in header: self.logDebug('DIRECT LINK from header: ' + header['location']) self.download(header['location']) else: -- cgit v1.2.3