Skip to content

Commit

Permalink
BUG: Python 3 time compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jfkirk authored and Jean Bredeche committed Jun 8, 2016
1 parent 2a8f69f commit 4a20157
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions zipline/utils/calendars/exchange_calendar_bmf.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
'Ano Novo Sabado',
month=12,
day=30,
days_of_week=(FRIDAY),
days_of_week=(FRIDAY,),
)


Expand Down Expand Up @@ -199,7 +199,7 @@ class BMFExchangeCalendar(ExchangeCalendar):

exchange_name = 'BMF'
native_timezone = timezone('America/Sao_Paulo')
open_time = time(10, 01)
open_time = time(10, 1)
close_time = time(17)

# Does the market open or close on a different calendar day, compared to
Expand All @@ -209,7 +209,7 @@ class BMFExchangeCalendar(ExchangeCalendar):

holidays_calendar = BMFHolidayCalendar()
special_opens_calendars = [
(time(13, 01), BMFLateOpenCalendar()),
(time(13, 1), BMFLateOpenCalendar()),
]
special_closes_calendars = ()

Expand Down
2 changes: 1 addition & 1 deletion zipline/utils/calendars/exchange_calendar_lse.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class LSEExchangeCalendar(ExchangeCalendar):

exchange_name = 'LSE'
native_timezone = timezone('Europe/London')
open_time = time(8, 01)
open_time = time(8, 1)
close_time = time(16, 30)
open_offset = 0
close_offset = 0
Expand Down

0 comments on commit 4a20157

Please sign in to comment.