From 6a5eaea83543b17e1b19b565a5631f53e45ae2bd Mon Sep 17 00:00:00 2001 From: Richard Frank Date: Fri, 22 Aug 2014 17:34:40 -0400 Subject: [PATCH] MAINT: Use local variable with same value --- zipline/gens/tradesimulation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zipline/gens/tradesimulation.py b/zipline/gens/tradesimulation.py index 9f378869..172c39c3 100644 --- a/zipline/gens/tradesimulation.py +++ b/zipline/gens/tradesimulation.py @@ -223,7 +223,7 @@ class AlgorithmSimulator(object): elif event.type == DATASOURCE_TYPE.SPLIT: self.algo.blotter.process_split(event) - if not self.algo.instant_fill: + if not instant_fill: self.process_event(event) else: events_to_be_processed.append(event)