Skip to content

Commit

Permalink
Fixes for Pylint 2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
avylove committed Apr 25, 2021
1 parent 43e53a1 commit 2b310e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/ftp_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(self, filename, size, directory=None):
def __enter__(self):
self.status = MANAGER.counter(total=self.size, desc=self.filename,
unit='bytes', leave=False)
self.fileobj = open(self.dest, 'wb')
self.fileobj = open(self.dest, 'wb') # pylint: disable=consider-using-with
return self

def __exit__(self, *args):
Expand Down
1 change: 1 addition & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ class MockTTY(object):
def __init__(self, height=25, width=80):

self.master, self.slave = pty.openpty()
# pylint: disable=consider-using-with
self.stdout = io.open(self.slave, 'w', 1, encoding='UTF-8', newline='')
self.stdread = io.open(self.master, 'r', encoding='UTF-8', newline='\n')

Expand Down

0 comments on commit 2b310e9

Please sign in to comment.