made code slightly more pytho2 friendly

This commit is contained in:
Claude committed 2016-01-17 10:41:40 +01:00
1 parent 90c4ca8c04
commit 67cbc5ebd1
4 files changed
+83 -73

No files matched your search

+5 -1
View File
@@ -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):