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

Commit

Permalink
hot fix to avoid pylint error
Browse files Browse the repository at this point in the history
  • Loading branch information
stu1130 committed Oct 3, 2019
1 parent b6f3235 commit fd89e01
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions python/mxnet/numpy_op_signature.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@

"""Make builtin ops' signatures compatible with NumPy."""

from __future__ import absolute_import
import sys
from sys import version, version_info # pylint: disable=relative-beyond-top-level
import warnings
from . import _numpy_op_doc
from . import numpy as mx_np
Expand Down Expand Up @@ -55,11 +54,11 @@ def _get_builtin_op(op_name):


def _register_op_signatures():
if sys.version_info.major < 3 or sys.version_info.minor < 5:
if version_info.major < 3 or version_info.minor < 5:
warnings.warn('Some mxnet.numpy operator signatures may not be displayed consistently with '
'their counterparts in the official NumPy package due to too-low Python '
'version {}. Python >= 3.5 is required to make the signatures display correctly.'
.format(str(sys.version)))
.format(str(version)))
return

import inspect
Expand Down

0 comments on commit fd89e01

Please sign in to comment.