提交 8be6057d authored 作者: Frederic Bastien's avatar Frederic Bastien

Use the six builtins

上级 bdee24d6
......@@ -555,7 +555,7 @@ def numpy_scalar(data):
# handle case where data is numpy.array([])
if (data.ndim > 0 and
(len(data.shape) == 0 or
__builtins__['max'](data.shape) == 0)):
builtins.max(data.shape) == 0)):
assert numpy.all(numpy.array([]) == data)
raise EmptyConstantError()
try:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论