diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-04-04 17:48:55 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-04-04 17:48:55 +0600 |
commit | ba9e68f40261355ceae5bb87c5707adc7f7beb2e (patch) | |
tree | e0c86bf0f93287c17fdabb817403fcb77041229f /youtube_dl | |
parent | ae0dd4b2988efc6252121ca2824ca8b3a8a18fba (diff) |
[utils] Drop trailing comma before closing brace
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 90e0ed9ab..e1761265c 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -1577,7 +1577,7 @@ def js_to_json(code): '(?:[^'\\]*(?:\\\\|\\['"nu]))*[^'\\]*'| [a-zA-Z_][.a-zA-Z_0-9]* ''', fix_kv, code) - res = re.sub(r',(\s*\])', lambda m: m.group(1), res) + res = re.sub(r',(\s*[\]}])', lambda m: m.group(1), res) return res |