mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-06 12:54:29 +08:00
Fix an issue for python 2.
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
from itertools import zip_longest
|
||||
try:
|
||||
from itertools import zip_longest
|
||||
except ImportError:
|
||||
# Python 2
|
||||
from itertools import izip_longest as zip_longest
|
||||
|
||||
from codecs import BOM_UTF8
|
||||
|
||||
import pytest
|
||||
|
||||
Reference in New Issue
Block a user