mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-04 11:35:55 +08:00
MAINT: Change relative library imports to use dot syntax.
Testing with a Python 3 virtualenv uncovered more relative imports that did not explicitly use the dot syntax.
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@ from . import finance
|
||||
from . import gens
|
||||
from . import utils
|
||||
|
||||
from algorithm import TradingAlgorithm
|
||||
from . algorithm import TradingAlgorithm
|
||||
|
||||
__all__ = [
|
||||
'data',
|
||||
|
||||
@@ -23,8 +23,8 @@ from datetime import timedelta
|
||||
import logbook
|
||||
|
||||
from . treasuries import get_treasury_data
|
||||
import benchmarks
|
||||
from benchmarks import get_benchmark_returns
|
||||
from . import benchmarks
|
||||
from . benchmarks import get_benchmark_returns
|
||||
|
||||
from zipline.protocol import DailyReturn
|
||||
from zipline.utils.date_utils import tuple_to_date
|
||||
|
||||
Reference in New Issue
Block a user