made code slightly more pytho2 friendly
This commit is contained in:
1 parent
90c4ca8c04
commit
67cbc5ebd1
4 files changed
+83
-73
No files matched your search
@@ -3,7 +3,11 @@ This module is not intended to be used in jedi, rather it will be fed to the
|
||||
jedi-parser to replace classes in the typing module
|
||||
"""
|
||||
|
||||
from collections import abc
|
||||
try:
|
||||
from collections import abc
|
||||
except ImportError:
|
||||
# python 2
|
||||
import collections as abc
|
||||
|
||||
|
||||
def factory(typing_name, indextype):
|
||||
|
||||
Reference in new issue
Block a user