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 (