Skip to content

Commit

Permalink
Fix lint errors causing build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
EntilZha committed Sep 24, 2018
1 parent ac7f4c7 commit caa739f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions functional/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import io
import sys

from future import builtins as builtins
from future import builtins
import six


Expand Down Expand Up @@ -219,13 +219,13 @@ def universal_write_open(path, mode, buffering=-1, encoding=None, errors=None, n
if compression is None:
return builtins.open(path, mode=mode, buffering=buffering, encoding=encoding, errors=errors,
newline=newline)
elif compression == 'gz' or compression == 'gzip':
elif compression in ('gz', 'gzip'):
if six.PY2:
return gzip.open(path, mode=mode, compresslevel=compresslevel)
else:
return gzip.open(path, mode=mode, compresslevel=compresslevel,
errors=errors, newline=newline, encoding=encoding)
elif compression == 'lzma' or compression == 'xz':
elif compression in ('lzma', 'xz'):
try:
import lzma
except ImportError:
Expand Down
2 changes: 1 addition & 1 deletion functional/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import json as jsonapi
import sqlite3 as sqlite3api

import future.builtins as builtins
from future import builtins
import six

from functional.execution import ExecutionEngine, ParallelExecutionEngine
Expand Down
2 changes: 1 addition & 1 deletion pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ confidence=
# --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use"--disable=all --enable=classes
# --disable=W"
disable=E1608,W1627,E1601,E1603,E1602,E1605,E1604,E1607,E1606,W1621,W1620,W1623,W1622,W1625,W1624,W1609,W1608,W1607,W1606,W1605,W1604,W1603,W1602,W1601,W1639,W1640,I0021,W1638,I0020,W1618,W1619,W1630,W1626,W1637,W1634,W1635,W1610,W1611,W1612,W1613,W1614,W1615,W1616,W1617,W1632,W1633,W0704,W1628,W1629,W1636,missing-docstring,too-many-lines,redefined-builtin,too-many-public-methods,too-many-arguments,superfluous-parens,no-else-return,len-as-condition,stop-iteration-return
disable=E1608,W1627,E1601,E1603,E1602,E1605,E1604,E1607,E1606,W1621,W1620,W1623,W1622,W1625,W1624,W1609,W1608,W1607,W1606,W1605,W1604,W1603,W1602,W1601,W1639,W1640,I0021,W1638,I0020,W1618,W1619,W1630,W1626,W1637,W1634,W1635,W1610,W1611,W1612,W1613,W1614,W1615,W1616,W1617,W1632,W1633,W0704,W1628,W1629,W1636,missing-docstring,too-many-lines,redefined-builtin,too-many-public-methods,too-many-arguments,superfluous-parens,no-else-return,len-as-condition,stop-iteration-return,useless-object-inheritance


[REPORTS]
Expand Down

0 comments on commit caa739f

Please sign in to comment.