Permalink
Browse files

Merge branch 'py3k'

  • Loading branch information...
2 parents 93aa17f + 63665b7 commit 057d9895469dd25ce4dd59454866add8b18deeec @kwgoodman committed Mar 18, 2013
View
@@ -122,9 +122,9 @@ After you have installed ``la``, run the suite of unit tests::
>>> import la
>>> la.test()
<snip>
- Ran 3020 tests in 9.225s
+ Ran 3012 tests in 9.225s
OK
- <nose.result.TextTestResult run=3020 errors=0 failures=0>
+ <nose.result.TextTestResult run=3012 errors=0 failures=0>
The ``la`` package contains C extensions that speed up common alignment
operations such as adding two unaligned larrys. If the C extensions don't
View
@@ -1,5 +1,5 @@
"la init"
-
+from __future__ import print_function
# Classes
from la.deflarry import larry
@@ -22,7 +22,7 @@
test = Tester().test
del Tester
except (ImportError, ValueError):
- print "No la unit testing available."
+ print("No la unit testing available.")
try:
# Namespace cleaning
View
@@ -1,4 +1,4 @@
-
+from __future__ import print_function
import datetime
import numpy as np
import la
@@ -110,10 +110,10 @@ def quotes(tickers, date1=None, date2=None, adjust=True, verbose=False):
lar = None
items = ['open', 'close', 'high', 'low', 'volume', 'adjclose']
if verbose:
- print "Load data"
+ print("Load data")
for ticker in tickers:
if verbose:
- print "\t" + ticker
+ print("\t" + ticker)
data, dates = quotes_historical_yahoo(ticker, date1, date2)
data = np.array(data).T
qlar = la.larry(data, [items, dates])
Oops, something went wrong.

0 comments on commit 057d989

Please sign in to comment.