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:
Eddie Hebert
2014-01-04 20:55:43 -05:00
parent df8464308d
commit 54ddd1c109
6 changed files with 10 additions and 11 deletions
+2 -2
View File
@@ -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 = \