mirror of https://github.com/mahmoud/boltons.git
basic Table python3 compat
This commit is contained in:
parent
a10a2cc3ad
commit
54fb457a8d
|
@ -25,7 +25,11 @@ import cgi
|
||||||
import types
|
import types
|
||||||
from itertools import islice
|
from itertools import islice
|
||||||
from collections import Sequence, Mapping, MutableSequence
|
from collections import Sequence, Mapping, MutableSequence
|
||||||
from six import string_types, integer_types
|
try:
|
||||||
|
string_types, integer_types = (str, unicode), (int, long)
|
||||||
|
except:
|
||||||
|
# Python 3 compat
|
||||||
|
string_types, integer_types = (str, bytes), (int,)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from compat import make_sentinel
|
from compat import make_sentinel
|
||||||
|
|
Loading…
Reference in New Issue