From 4157ae7d5c110ccd385e0f8512914c6d54166c0e Mon Sep 17 00:00:00 2001 From: Frank Wang Date: Fri, 26 Apr 2019 09:40:32 +0800 Subject: [PATCH] [linkedin:learning] add support for subtitle fix import error in Python 2.X --- youtube_dl/extractor/linkedin.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/linkedin.py b/youtube_dl/extractor/linkedin.py index 690efc15c..e6b51a73b 100644 --- a/youtube_dl/extractor/linkedin.py +++ b/youtube_dl/extractor/linkedin.py @@ -2,7 +2,12 @@ from __future__ import unicode_literals import re -from itertools import zip_longest + +try: + from itertools import zip_longest +except ImportError: + from itertools import izip_longest as zip_longest + from .common import InfoExtractor from ..utils import (