提交 e17ba874 authored 作者: dima's avatar dima

Fixed one more comparison with None

上级 5f04a6bc
......@@ -137,7 +137,7 @@ def get_canonical_form_slice(theslice, length):
# in the generic case below.
if step == 1:
is_start_0 = (
start in [None, 0] or
start is None or start == 0 or
(is_start_constant and is_length_constant and
start < 0 and start + length <= 0))
is_stop_length = (
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论