Silence pylint

Silence pylint in specific places where we're doing slightly unusual
or dodgy, but correct.
This commit is contained in:
Gilles Peskine 2019-02-25 21:39:42 +01:00
parent 6fc5215831
commit afd19dd9b6
4 changed files with 9 additions and 4 deletions

View file

@ -238,7 +238,7 @@ class FileWrapper(io.FileIO, object):
if hasattr(parent, '__next__'):
line = parent.__next__() # Python 3
else:
line = parent.next() # Python 2
line = parent.next() # Python 2 # pylint: disable=no-member
if line is not None:
self._line_no += 1
# Convert byte array to string with correct encoding and