diff options
author | Walter Purcaro <vuolter@gmail.com> | 2015-02-03 00:22:10 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2015-02-03 00:22:10 +0100 |
commit | 4722e1f6a0c5978617de52e1ec4611e5d6067142 (patch) | |
tree | b3da5db3b96f107bd1f08098def74270405fcce2 /module/plugins/hooks/XFileSharingPro.py | |
parent | [Checksum] Retrieve hashsum from self.info (diff) | |
download | pyload-4722e1f6a0c5978617de52e1ec4611e5d6067142.tar.xz |
Use method pop to remove item from dict
Diffstat (limited to 'module/plugins/hooks/XFileSharingPro.py')
-rw-r--r-- | module/plugins/hooks/XFileSharingPro.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hooks/XFileSharingPro.py b/module/plugins/hooks/XFileSharingPro.py index 9435d35d9..a1ee7f5ef 100644 --- a/module/plugins/hooks/XFileSharingPro.py +++ b/module/plugins/hooks/XFileSharingPro.py @@ -112,11 +112,11 @@ class XFileSharingPro(Hook): hdict = self.core.pluginManager.hosterPlugins[hoster] if "new_name" in hdict and hdict['new_name'] == "XFileSharingPro": if "module" in hdict: - del hdict['module'] + hdict.pop('module', None) if "new_module" in hdict: - del hdict['new_module'] - del hdict['new_name'] + hdict.pop('new_module', None) + hdict.pop('new_name', None) return True else: |