Commit ec37028c by Siju Samuel Committed by Tianqi Chen

[PYLINT FIX]pylint issue fixes (#348)

Before Fix
************* 
************* Module nnvm._base
R: 21, 0: Disallow trailing comma tuple (trailing-comma-tuple)
R: 27, 0: Disallow trailing comma tuple (trailing-comma-tuple)

-----------------------------------
Your code has been rated at 9.99/

After Fix
************* 
siju@siju-DAEMON:~/D/Community/nnvm$ make lint
pylint python/nnvm --rcfile=/media/siju/DATA/Community/nnvm/tests/lint/pylintrc

-------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 9.99/10, +0.01)
parent 6be636e1
......@@ -18,13 +18,13 @@ except ImportError:
# library loading
#----------------------------
if sys.version_info[0] == 3:
string_types = str,
string_types = str
numeric_types = (float, int, np.float32, np.int32)
# this function is needed for python3
# to convert ctypes.char_p .value back to python str
py_str = lambda x: x.decode('utf-8')
else:
string_types = basestring,
string_types = basestring
numeric_types = (float, int, long, np.float32, np.int32)
py_str = lambda x: x
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment