From 563a8b34f3645e099af57ae76e5774816fda8dc3 Mon Sep 17 00:00:00 2001 From: Scott Sanderson Date: Fri, 28 Oct 2016 15:14:22 -0400 Subject: [PATCH] STY: Put 0 at the end. (#1569) --- zipline/data/data_portal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zipline/data/data_portal.py b/zipline/data/data_portal.py index f0b0d446..5b89a2af 100644 --- a/zipline/data/data_portal.py +++ b/zipline/data/data_portal.py @@ -708,7 +708,7 @@ class DataPortal(object): days_for_window, end_dt, field_to_use): - ends_at_midnight = (0 == end_dt.hour == end_dt.minute) + ends_at_midnight = (end_dt.hour == end_dt.minute == 0) if ends_at_midnight: # two cases where we use daily data for the whole range: