From 854b6638b254b6569ebc2720b86b9d7740e1958e Mon Sep 17 00:00:00 2001 From: Scott Sanderson Date: Thu, 22 Oct 2015 03:12:22 -0400 Subject: [PATCH] MAINT: Remove default values from dump_treasury_curves. We never call the function without passing them explicitly. --- zipline/data/loader.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zipline/data/loader.py b/zipline/data/loader.py index 8a001f4e..f6108806 100644 --- a/zipline/data/loader.py +++ b/zipline/data/loader.py @@ -72,17 +72,17 @@ def get_cache_filepath(name): return os.path.join(cr, name) -def dump_treasury_curves(module='treasuries', filename='treasury_curves.csv'): +def dump_treasury_curves(module_name, filename): """ Dumps data to be used with zipline. Puts source treasury and data into zipline. """ try: - m = importlib.import_module("." + module, package='zipline.data') + m = importlib.import_module("." + module_name, package='zipline.data') except ImportError: raise NotImplementedError( - 'Treasury curve {0} module not implemented'.format(module)) + 'Treasury curve {0} module not implemented'.format(module_name)) tr_data = {}