diff options
| author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-02-17 23:22:06 +0100 |
|---|---|---|
| committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-02-21 19:06:16 +0100 |
| commit | b47b56dedba6c845925076d0dd07e373dac03d3a (patch) | |
| tree | 2cbeae10b6bba0d560588d9ab188b950034f7c1f /astroid/builder.py | |
| parent | 92cb458aa5c481877a57448299f784b83533be03 (diff) | |
| download | astroid-git-b47b56dedba6c845925076d0dd07e373dac03d3a.tar.gz | |
Remove redundant open mode 'r' in opens
Diffstat (limited to 'astroid/builder.py')
| -rw-r--r-- | astroid/builder.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/astroid/builder.py b/astroid/builder.py index 7c819cbf..86cba8b1 100644 --- a/astroid/builder.py +++ b/astroid/builder.py @@ -49,7 +49,7 @@ MANAGER = manager.AstroidManager() def open_source_file(filename): with open(filename, "rb") as byte_stream: encoding = detect_encoding(byte_stream.readline)[0] - stream = open(filename, "r", newline=None, encoding=encoding) + stream = open(filename, newline=None, encoding=encoding) data = stream.read() return stream, encoding, data |
