提交 98b8d9b7 authored 作者: Thomas Mesnard's avatar Thomas Mesnard

pep8 on printing.py

上级 9898d9d9
...@@ -1298,7 +1298,7 @@ def hex_digest(x): ...@@ -1298,7 +1298,7 @@ def hex_digest(x):
raise RuntimeError("Can't run hex_digest" raise RuntimeError("Can't run hex_digest"
"because hashlib is not available.") "because hashlib is not available.")
assert isinstance(x, np.ndarray) assert isinstance(x, np.ndarray)
rval = hashlib.md5(x.tostring).hexdigest() rval = hashlib.md5(x.tostring()).hexdigest()
# hex digest must be annotated with strides to avoid collisions # hex digest must be annotated with strides to avoid collisions
# because the buffer interface only exposes the raw data, not # because the buffer interface only exposes the raw data, not
# any info about the semantics of how that data should be arranged # any info about the semantics of how that data should be arranged
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论