diff options
| author | 2014-11-16 00:15:58 +0100 | |
|---|---|---|
| committer | 2014-11-16 00:15:58 +0100 | |
| commit | 6b5445c40996b8803da43ae95bc1ab2b5f4c0a46 (patch) | |
| tree | d8ccaf123d56bb11fc1d67cb224aaa8d7298e67b /pyload/plugins/Plugin.py | |
| parent | [ConfigParser] getPlugin return str (diff) | |
| download | pyload-6b5445c40996b8803da43ae95bc1ab2b5f4c0a46.tar.xz | |
Spare code cosmetics
Diffstat (limited to 'pyload/plugins/Plugin.py')
| -rw-r--r-- | pyload/plugins/Plugin.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyload/plugins/Plugin.py b/pyload/plugins/Plugin.py index a3ef1d46b..c28b3cd87 100644 --- a/pyload/plugins/Plugin.py +++ b/pyload/plugins/Plugin.py @@ -685,7 +685,7 @@ class Plugin(Base): #produces encoding errors, better log to other file in the future? #self.logDebug("Content: %s" % content) for name, rule in rules.iteritems(): - if type(rule) in (str, unicode): + if isinstance(rule, basestring): if rule in content: if delete: remove(lastDownload) |
