From cf6ec9fd73e69fef61d1d7df29ed7f5a9071efe4 Mon Sep 17 00:00:00 2001 From: Richard Frank Date: Tue, 23 Aug 2016 16:21:20 -0400 Subject: [PATCH] BUG: More python3 compat --- zipline/data/bundles/core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zipline/data/bundles/core.py b/zipline/data/bundles/core.py index 00c30a4e..7bb1b2f8 100644 --- a/zipline/data/bundles/core.py +++ b/zipline/data/bundles/core.py @@ -7,6 +7,7 @@ import warnings from contextlib2 import ExitStack import click import pandas as pd +from six import string_types from toolz import curry, complement, take from ..us_equity_pricing import ( @@ -295,7 +296,7 @@ def _make_bundle_core(): stacklevel=3, ) - if isinstance(calendar, str): + if isinstance(calendar, string_types): calendar = get_calendar(calendar) # If the start and end sessions are not provided or lie outside