From 54fb457a8d1e15d9d958cea1fe0e623a0ff7336e Mon Sep 17 00:00:00 2001 From: Mahmoud Hashemi Date: Fri, 10 Apr 2015 14:46:08 -0700 Subject: [PATCH] basic Table python3 compat --- boltons/tableutils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/boltons/tableutils.py b/boltons/tableutils.py index f857a5c..a8e523c 100644 --- a/boltons/tableutils.py +++ b/boltons/tableutils.py @@ -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