Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Py-StackExchange issue#8
diff --git a/stackexchange/ b/stackexchange/
index c257838..32e3fb7 100644
--- a/stackexchange/
+++ b/stackexchange/
@@ -542,7 +542,7 @@ through here."""
if isinstance(ob, datetime.datetime):
return str(time.mktime(ob.timetuple()))
- elif isinstance(ob, str):
+ elif isinstance(ob, basestring):
return ob
i = iter(ob)
@@ -611,7 +611,7 @@ through here."""
return ';'.join([self.vectorise(x, or_of_type) for x in lst])
elif allowed_types is not None and any([isinstance(lst, typ) for typ in allowed_types]) and hasattr(lst, 'id'):
return str(
- elif isinstance(lst, str):
+ elif isinstance(lst, basestring):
return lst
return str(lst).lower()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment