From 8d1ecb508a7e79fc3c0f0afd0b2ccf898660d98b Mon Sep 17 00:00:00 2001 From: dmichalowicz Date: Thu, 28 Apr 2016 15:28:19 -0400 Subject: [PATCH] Use string_types --- zipline/algorithm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zipline/algorithm.py b/zipline/algorithm.py index a06a2cb6..ed0f124d 100644 --- a/zipline/algorithm.py +++ b/zipline/algorithm.py @@ -652,7 +652,7 @@ class TradingAlgorithm(object): new_assets.add(identifier) elif isinstance(identifier, Integral) and is_unknown(identifier): new_sids.add(identifier) - elif isinstance(identifier, (bytes, unicode)): + elif isinstance(identifier, (string_types)): new_symbols.add(identifier) else: try: