From: Sergey M․ Date: Tue, 20 May 2014 12:44:42 +0000 (+0700) Subject: [bandcamp] Replace maxsplit keyword argument with regular one X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=2902d44f994ec8140595855f8d5b85601fae164f;p=youtube-dl [bandcamp] Replace maxsplit keyword argument with regular one Named arguments are not supported by methods implemented in native C (see http://bugs.python.org/issue1176) --- diff --git a/youtube_dl/extractor/bandcamp.py b/youtube_dl/extractor/bandcamp.py index be4123d85..dcbbdef43 100644 --- a/youtube_dl/extractor/bandcamp.py +++ b/youtube_dl/extractor/bandcamp.py @@ -37,7 +37,7 @@ class BandcampIE(InfoExtractor): formats = [] for format_id, format_url in data['file'].items(): - ext, abr_str = format_id.split('-', maxsplit=1) + ext, abr_str = format_id.split('-', 1) formats.append({ 'format_id': format_id, 'url': format_url,