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

Commit bd002ab

Browse files
committed
hot fix to avoid pylint error
1 parent b6f3235 commit bd002ab

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

python/mxnet/numpy_op_signature.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717

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

20-
from __future__ import absolute_import
21-
import sys
20+
from sys import version, version_info
2221
import warnings
2322
from . import _numpy_op_doc
2423
from . import numpy as mx_np
@@ -55,11 +54,11 @@ def _get_builtin_op(op_name):
5554

5655

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

6564
import inspect

0 commit comments

Comments
 (0)