mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fallback to zip_longest for python3
This commit is contained in:
parent
7ecdad4bbe
commit
14a99c8b86
@ -10,7 +10,11 @@
|
||||
:license: BSD, see LICENSE for details.
|
||||
"""
|
||||
from uuid import uuid4
|
||||
from itertools import izip_longest, product
|
||||
from itertools import product
|
||||
try:
|
||||
from itertools import izip_longest
|
||||
except ImportError:
|
||||
from itertools import zip_longest
|
||||
from difflib import SequenceMatcher
|
||||
|
||||
from sphinx.util import PeekableIterator
|
||||
|
Loading…
Reference in New Issue
Block a user