Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix error in pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
hgt312 committed Aug 5, 2019
1 parent eead5c2 commit d75e34b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/mxnet/ndarray/numpy/_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ def take(a, indices, axis=None, mode='clip', out=None):
array([[4., 3.],
[5., 7.]])
"""
if mode != 'wrap' and mode != 'clip':
if mode not in ('wrap', 'clip'):
raise NotImplementedError(
"function take does not support mode '{}'".format(mode))
return _npi.take(a, indices, axis, mode, out)
Expand Down
2 changes: 1 addition & 1 deletion python/mxnet/symbol/numpy/_symbol.py
Original file line number Diff line number Diff line change
Expand Up @@ -1313,7 +1313,7 @@ def take(a, indices, axis=None, mode='clip', out=None):
- Only ndarray or scalar ndarray is accepted as valid input.
- 'raise' mode is not supported.
"""
if mode != 'wrap' and mode != 'clip':
if mode not in ('wrap', 'clip'):
raise NotImplementedError(
"function take does not support mode '{}'".format(mode))
return _npi.take(a, indices, axis, mode, out)
Expand Down

0 comments on commit d75e34b

Please sign in to comment.