提交 ae4e9609 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Typo fixes

上级 90e99a43
...@@ -1443,7 +1443,7 @@ class _tensor_py_operators: ...@@ -1443,7 +1443,7 @@ class _tensor_py_operators:
def __sub__(self, other): def __sub__(self, other):
# See explanation in __add__ for the error catched # See explanation in __add__ for the error catched
# adn the return value in that case # and the return value in that case
try: try:
return sub(self, other) return sub(self, other)
except (NotImplementedError, TypeError): except (NotImplementedError, TypeError):
...@@ -1451,7 +1451,7 @@ class _tensor_py_operators: ...@@ -1451,7 +1451,7 @@ class _tensor_py_operators:
def __mul__(self, other): def __mul__(self, other):
# See explanation in __add__ for the error catched # See explanation in __add__ for the error catched
# adn the return value in that case # and the return value in that case
try: try:
return mul(self, other) return mul(self, other)
except (NotImplementedError, TypeError): except (NotImplementedError, TypeError):
...@@ -1459,7 +1459,7 @@ class _tensor_py_operators: ...@@ -1459,7 +1459,7 @@ class _tensor_py_operators:
def __div__(self, other): def __div__(self, other):
# See explanation in __add__ for the error catched # See explanation in __add__ for the error catched
# adn the return value in that case # and the return value in that case
try: try:
return div_proxy(self, other) return div_proxy(self, other)
except IntegerDivisionError: except IntegerDivisionError:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论