Add explicit argument name of 'mode' to the open statement.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-10-31 16:53:48 -04:00
parent 5a8455bfc2
commit 9fc7c4fc09
11 changed files with 33 additions and 33 deletions

View File

@@ -102,9 +102,9 @@ def get_descriptor(file_input, read=True):
except AttributeError:
# If not, try open it.
if read:
return open(file_input, 'rb')
return open(file_input, mode='rb')
else:
return open(file_input, 'wb')
return open(file_input, mode='wb')
else:
return file_input