From 4bc42d5658cce958450555d8e0121c99c07291f0 Mon Sep 17 00:00:00 2001 From: Scott Sanderson Date: Tue, 16 Feb 2016 12:35:49 -0500 Subject: [PATCH] BUG: Don't return a map from chrange. --- zipline/utils/test_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zipline/utils/test_utils.py b/zipline/utils/test_utils.py index ad88c4fc..18e949e5 100644 --- a/zipline/utils/test_utils.py +++ b/zipline/utils/test_utils.py @@ -18,7 +18,7 @@ from numpy.testing import assert_allclose, assert_array_equal import pandas as pd from pandas.tseries.offsets import MonthBegin from six import iteritems, itervalues -from six.moves import filter +from six.moves import filter, map from sqlalchemy import create_engine from toolz import concat @@ -260,10 +260,10 @@ def chrange(start, stop): Example ------- - >>> list(chrange('A', 'C')) + >>> chrange('A', 'C') ['A', 'B', 'C'] """ - return map(chr, range(ord(start), ord(stop) + 1)) + return list(map(chr, range(ord(start), ord(stop) + 1))) def make_rotating_equity_info(num_assets,