summaryrefslogtreecommitdiff
path: root/astroid/builder.py
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2021-02-17 23:22:06 +0100
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-02-21 19:06:16 +0100
commitb47b56dedba6c845925076d0dd07e373dac03d3a (patch)
tree2cbeae10b6bba0d560588d9ab188b950034f7c1f /astroid/builder.py
parent92cb458aa5c481877a57448299f784b83533be03 (diff)
downloadastroid-git-b47b56dedba6c845925076d0dd07e373dac03d3a.tar.gz
Remove redundant open mode 'r' in opens
Diffstat (limited to 'astroid/builder.py')
-rw-r--r--astroid/builder.py2
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