mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-01-25 23:11:02 +08:00
PUB:20190503 API evolution the right way.md
@MjSeven https://linux.cn/article-10900-1.html
This commit is contained in:
parent
d8863509c1
commit
d6987bf53d
@ -1,8 +1,8 @@
|
|||||||
[#]: collector: (lujun9972)
|
[#]: collector: (lujun9972)
|
||||||
[#]: translator: (MjSeven)
|
[#]: translator: (MjSeven)
|
||||||
[#]: reviewer: (wxy)
|
[#]: reviewer: (wxy)
|
||||||
[#]: publisher: ( )
|
[#]: publisher: (wxy)
|
||||||
[#]: url: ( )
|
[#]: url: (https://linux.cn/article-10900-1.html)
|
||||||
[#]: subject: (API evolution the right way)
|
[#]: subject: (API evolution the right way)
|
||||||
[#]: via: (https://opensource.com/article/19/5/api-evolution-right-way)
|
[#]: via: (https://opensource.com/article/19/5/api-evolution-right-way)
|
||||||
[#]: author: (A. Jesse https://opensource.com/users/emptysquare)
|
[#]: author: (A. Jesse https://opensource.com/users/emptysquare)
|
||||||
@ -58,7 +58,7 @@ def create_event(day,
|
|||||||
if end_time and not start_time:
|
if end_time and not start_time:
|
||||||
raise ValueError("Can't pass end_time without start_time")
|
raise ValueError("Can't pass end_time without start_time")
|
||||||
|
|
||||||
# 女巫集会从午夜一直开到凌晨 4 点
|
# 女巫集会从午夜一直开到凌晨 4 点
|
||||||
create_event(datetime.date.today(),
|
create_event(datetime.date.today(),
|
||||||
datetime.time(0, 0),
|
datetime.time(0, 0),
|
||||||
datetime.time(4, 0))
|
datetime.time(4, 0))
|
Loading…
Reference in New Issue
Block a user