diff options
author | Walter Purcaro <vuolter@gmail.com> | 2015-02-08 02:09:45 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2015-02-08 02:15:53 +0100 |
commit | b25bc61dd47d8d3c42969bd0f72443b21c4b059e (patch) | |
tree | 6115841c9763289bd400c6171508f397d3526bf5 /module/plugins/crypter/LinkCryptWs.py | |
parent | [ZippyshareCom] Typo (diff) | |
download | pyload-b25bc61dd47d8d3c42969bd0f72443b21c4b059e.tar.xz |
Spare code cosmetics
Diffstat (limited to 'module/plugins/crypter/LinkCryptWs.py')
-rw-r--r-- | module/plugins/crypter/LinkCryptWs.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/module/plugins/crypter/LinkCryptWs.py b/module/plugins/crypter/LinkCryptWs.py index 098f2542f..018ed90ba 100644 --- a/module/plugins/crypter/LinkCryptWs.py +++ b/module/plugins/crypter/LinkCryptWs.py @@ -314,8 +314,7 @@ class LinkCryptWs(Crypter): # Extract links text = text.replace("\x00", "").replace("\r", "") - links = text.split("\n") - links = filter(lambda x: x != "", links) + links = filter(bool, text.split('\n')) # Log and return self.logDebug("Package has %d links" % len(links)) |