Fix definition of string_types in py27compat.py
Previously it would fail with:
TypeError: set expected at most 1 arguments, got 2
Instead of using set, declare the tuple explicitly to avoid useless
memory copies.
@@ -14,10 +14,10 @@ except NameError:
try:
text_type = unicode
+ string_types = unicode, str
except NameError:
text_type = str
-
-string_types = tuple(set(str, text_type))
+ string_types = str,
try:
import cPickle as pickle
