diff options
Diffstat (limited to 'astroid/builder.py')
-rw-r--r-- | astroid/builder.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/astroid/builder.py b/astroid/builder.py index 789c2c0a..de5acac1 100644 --- a/astroid/builder.py +++ b/astroid/builder.py @@ -50,6 +50,7 @@ MANAGER = manager.AstroidManager() def open_source_file(filename): + # pylint: disable=consider-using-with with open(filename, "rb") as byte_stream: encoding = detect_encoding(byte_stream.readline)[0] stream = open(filename, newline=None, encoding=encoding) |