diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-25 09:42:49 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-25 09:42:49 +0200 |
commit | 952001324e1faf584b1adcb01c4a0406a3722932 (patch) | |
tree | ed87ade69e207e677d1144147b381bcd508ab25d /module/plugins/hoster | |
parent | Account rewritten (2) (diff) | |
download | pyload-952001324e1faf584b1adcb01c4a0406a3722932.tar.xz |
Don't user dictionary’s iterator methods
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r-- | module/plugins/hoster/SoundcloudCom.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/plugins/hoster/SoundcloudCom.py b/module/plugins/hoster/SoundcloudCom.py index 3380d1dd8..b189ee1ba 100644 --- a/module/plugins/hoster/SoundcloudCom.py +++ b/module/plugins/hoster/SoundcloudCom.py @@ -43,7 +43,7 @@ class SoundcloudCom(SimpleHoster): get={'client_id': client_id})) regex = re.compile(r'[^\d]') - http_streams = sorted([(key, value) for key, value in streams.iteritems() if key.startswith('http_')], + http_streams = sorted([(key, value) for key, value in streams.items() if key.startswith('http_')], key=lambda t: regex.sub(t[0], ''), reverse=True) |