浏览代码

[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)
Sergey M․ 11 年之前
父节点
当前提交
2902d44f99
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/extractor/bandcamp.py

+ 1 - 1
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,