Fix useless-return pylint errors
This commit is contained in:
parent
8ca9c1d6e3
commit
dc3910ce4c
|
@ -563,7 +563,6 @@ class ConnectionSocks5Bytestream(ConnectionBytestream):
|
|||
"""
|
||||
file_props = FilesProp.getFilePropBySid(sid)
|
||||
file_props.hash_ = hash_id
|
||||
return
|
||||
|
||||
def _connect_error(self, sid, error, error_type, msg=None):
|
||||
"""
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
PYLINT=${PYLINT:-pylint}
|
||||
|
||||
"$PYLINT" --disable=C0103,C0302,C0330,C0411,C0412,C0413,E0203,E0401,E0611,E0710,E0712,E1101,E1102,E1128,E1133,E1136,R0201,R0901,R0904,R0913,R0916,R1702,R1706,R1711,R1716,W0201,W0212,W0221,W0223,W0311,W0401,W0603,W0613,W0614 "$@"
|
||||
"$PYLINT" --disable=C0103,C0302,C0330,C0411,C0412,C0413,E0203,E0401,E0611,E0710,E0712,E1101,E1102,E1128,E1133,E1136,R0201,R0901,R0904,R0913,R0916,R1702,R1706,R1716,W0201,W0212,W0221,W0223,W0311,W0401,W0603,W0613,W0614 "$@"
|
||||
|
||||
# C0103 invalid-name
|
||||
# C0302 too-many-lines
|
||||
|
@ -26,7 +26,6 @@ PYLINT=${PYLINT:-pylint}
|
|||
# R0916 too-many-boolean-expressions
|
||||
# R1702 too-many-nested-blocks
|
||||
# R1706 consider-using-ternary
|
||||
# R1711 useless-return
|
||||
# R1716 chained-comparison
|
||||
# W0201 attribute-defined-outside-init
|
||||
# W0212 protected-access
|
||||
|
|
Loading…
Reference in New Issue