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

Commit

Permalink
Fix pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
larroy committed Jan 9, 2019
1 parent 1d835e3 commit 6eee62e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/mxnet/gluon/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def _replace_atomic(src, dst):
_MOVEFILE_WRITE_THROUGH = 0x8
_windows_default_flags = _MOVEFILE_WRITE_THROUGH

text_type = unicode if sys.version_info[0] == 2 else str # noqa
text_type = unicode if sys.version_info[0] == 2 else str # pylint: disable=undefined-variable

This comment has been minimized.

Copy link
@stsukrov

stsukrov Jan 9, 2019

Do we miss a named constant for this 2?


def _str_to_unicode(x):
"""Handle text decoding. Internal use only"""
Expand Down
2 changes: 1 addition & 1 deletion python/mxnet/mxfeatures.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# under the License.

# coding: utf-8
# pylint: disable=invalid-name, no-member, trailing-comma-tuple, bad-mcs-classmethod-argument
# pylint: disable=not-an-iterable

"""runtime detection of compile time features in the native library"""

Expand Down

0 comments on commit 6eee62e

Please sign in to comment.