From f9580316c9ba40c8536a71dfca450c7f77b00038 Mon Sep 17 00:00:00 2001 From: Jonathan Kamens Date: Thu, 30 May 2013 10:06:23 -0400 Subject: [PATCH] MAINT: Reformat comment to make flake8 happy --- zipline/algorithm.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/zipline/algorithm.py b/zipline/algorithm.py index 4a62b32c..d38bdee6 100644 --- a/zipline/algorithm.py +++ b/zipline/algorithm.py @@ -56,7 +56,8 @@ DEFAULT_CAPITAL_BASE = float("1.0e5") class TradingAlgorithm(object): - """Base class for trading algorithms. Inherit and overload + """ + Base class for trading algorithms. Inherit and overload initialize() and handle_data(data). A new algorithm could look like this: @@ -71,8 +72,8 @@ class TradingAlgorithm(object): ``` To then to run this algorithm: - >>> my_algo = MyAlgo([0], 100) # first argument has to be list of sids - >>> stats = my_algo.run(data) + my_algo = MyAlgo([0], 100) # first argument has to be list of sids + stats = my_algo.run(data) """ def __init__(self, *args, **kwargs):