File tree 4 files changed +4
-16
lines changed
4 files changed +4
-16
lines changed Original file line number Diff line number Diff line change 1
1
2
- try :
3
- from collections .abc import Mapping
4
- except ImportError : # Python 2.7
5
- from collections .abc import Mapping
2
+ from collections .abc import Mapping
6
3
7
4
8
5
class Trie (Mapping ):
Original file line number Diff line number Diff line change 1
1
2
2
from types import ModuleType
3
3
4
- try :
5
- from collections .abc import Mapping
6
- except ImportError :
7
- from collections .abc import Mapping
4
+ from collections .abc import Mapping
8
5
9
6
from six import text_type , PY3
10
7
Original file line number Diff line number Diff line change 1
1
2
2
3
- try :
4
- from collections .abc import MutableMapping
5
- except ImportError : # Python 2.7
6
- from collections .abc import MutableMapping
3
+ from collections .abc import MutableMapping
7
4
from xml .dom import minidom , Node
8
5
import weakref
9
6
Original file line number Diff line number Diff line change 15
15
import re
16
16
import sys
17
17
18
- try :
19
- from collections .abc import MutableMapping
20
- except ImportError :
21
- from collections .abc import MutableMapping
18
+ from collections .abc import MutableMapping
22
19
23
20
from . import base
24
21
from ..constants import DataLossWarning
You can’t perform that action at this time.
0 commit comments