Skip to content

Commit 63f52ef

Browse files
author
Davies Liu
committed
fix pylint check
1 parent 655b8a9 commit 63f52ef

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dev/lint-python

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export "PATH=$PYTHONPATH:$PATH"
6161
if [ ! -d "$PYLINT_HOME" ]; then
6262
mkdir "$PYLINT_HOME"
6363
# Redirect the annoying pylint installation output.
64-
easy_install -d "$PYLINT_HOME" pylint==1.4.4 &>> "$PYLINT_INSTALL_INFO"
64+
easy_install -d "$PYLINT_HOME" pylint==1.4.4 >> "$PYLINT_INSTALL_INFO" 2>&1
6565
easy_install_status="$?"
6666

6767
if [ "$easy_install_status" -ne 0 ]; then

pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ enable=
8484
# If you would like to improve the code quality of pyspark, remove any of these disabled errors
8585
# run ./dev/lint-python and see if the errors raised by pylint can be fixed.
8686

87-
disable=invalid-name,missing-docstring,protected-access,unused-argument,no-member,unused-wildcard-import,redefined-builtin,too-many-arguments,unused-variable,too-few-public-methods,bad-continuation,duplicate-code,redefined-outer-name,too-many-ancestors,import-error,superfluous-parens,unused-import,line-too-long,no-name-in-module,unnecessary-lambda,import-self,no-self-use,unidiomatic-typecheck,fixme,too-many-locals,cyclic-import,too-many-branches,bare-except,wildcard-import,dangerous-default-value,broad-except,too-many-public-methods,deprecated-lambda,anomalous-backslash-in-string,too-many-lines,reimported,too-many-statements,bad-whitespace,unpacking-non-sequence,too-many-instance-attributes,abstract-method,old-style-class,global-statement,attribute-defined-outside-init,arguments-differ,undefined-all-variable,no-init,useless-else-on-loop,super-init-not-called,notimplemented-raised,too-many-return-statements,pointless-string-statement,global-variable-undefined,bad-classmethod-argument,too-many-format-args,parse-error,no-self-argument,pointless-statement,undefined-variable
87+
disable=invalid-name,missing-docstring,protected-access,unused-argument,no-member,unused-wildcard-import,redefined-builtin,too-many-arguments,unused-variable,too-few-public-methods,bad-continuation,duplicate-code,redefined-outer-name,too-many-ancestors,import-error,superfluous-parens,unused-import,line-too-long,no-name-in-module,unnecessary-lambda,import-self,no-self-use,unidiomatic-typecheck,fixme,too-many-locals,cyclic-import,too-many-branches,bare-except,wildcard-import,dangerous-default-value,broad-except,too-many-public-methods,deprecated-lambda,anomalous-backslash-in-string,too-many-lines,reimported,too-many-statements,bad-whitespace,unpacking-non-sequence,too-many-instance-attributes,abstract-method,old-style-class,global-statement,attribute-defined-outside-init,arguments-differ,undefined-all-variable,no-init,useless-else-on-loop,super-init-not-called,notimplemented-raised,too-many-return-statements,pointless-string-statement,global-variable-undefined,bad-classmethod-argument,too-many-format-args,parse-error,no-self-argument,pointless-statement,undefined-variable,undefined-loop-variable
8888

8989

9090
[REPORTS]

python/pyspark/shuffle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ def _open_file(self):
606606
if not os.path.exists(d):
607607
os.makedirs(d)
608608
p = os.path.join(d, str(id(self)))
609-
self._file = open(p, "wb+", 65536)
609+
self._file = open(p, "w+b", 65536)
610610
self._ser = BatchedSerializer(CompressedSerializer(PickleSerializer()), 1024)
611611
os.unlink(p)
612612

0 commit comments

Comments
 (0)