basic Table python3 compat

This commit is contained in:
Mahmoud Hashemi 2015-04-10 14:46:08 -07:00
parent a10a2cc3ad
commit 54fb457a8d
1 changed files with 5 additions and 1 deletions

View File

@ -25,7 +25,11 @@ import cgi
import types
from itertools import islice
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:
from compat import make_sentinel