mirror of
https://github.com/wassname/catalyst.git
synced 2026-09-10 11:50:32 +08:00
MAINT: print function clean up in preparation for Python 3
- Use `print()` function for all print calls - Fix strip and format calls that were on the outside of the print function for some reason. (Which were breaking in Python 3 because of print returning None.) - Remove commented out print calls.
This commit is contained in:
@@ -300,7 +300,7 @@ class TestTALIB(TestCase):
|
||||
and n not in BLACKLIST]
|
||||
|
||||
for name in names:
|
||||
print name
|
||||
print(name)
|
||||
zipline_transform = getattr(ta, name)(sid=0)
|
||||
talib_fn = getattr(talib.abstract, name)
|
||||
|
||||
@@ -337,7 +337,7 @@ class TestTALIB(TestCase):
|
||||
and np.all(np.isnan(expected_result))):
|
||||
self.assertTrue(np.allclose(zipline_result, expected_result))
|
||||
else:
|
||||
print '--- NAN'
|
||||
print('--- NAN')
|
||||
|
||||
# reset generator so next iteration has data
|
||||
# self.source, self.panel = \
|
||||
|
||||
Reference in New Issue
Block a user