提交 b1cd90b3 authored 作者: jhelie's avatar jhelie

fix call to copy()]

上级 c5a1cae2
...@@ -56,7 +56,7 @@ def safe_new(x, tag='', dtype=None): ...@@ -56,7 +56,7 @@ def safe_new(x, tag='', dtype=None):
if dtype and x.dtype != dtype: if dtype and x.dtype != dtype:
casted_x = x.astype(dtype) casted_x = x.astype(dtype)
nwx = x.__class__(casted_x.type, x.data, x.name) nwx = x.__class__(casted_x.type, x.data, x.name)
nwx.tag = copy(x.tag) nwx.tag = copy.copy(x.tag)
return nwx return nwx
else: else:
return x.clone() return x.clone()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论