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
+1 -1
View File
@@ -529,7 +529,7 @@ class DocumentVersion(models.Model):
converter = converter_class(file_object=self.open())
pdf_file_object = converter.to_pdf()
with storage_documentimagecache.open(cache_filename, 'wb+') as file_object:
with storage_documentimagecache.open(cache_filename, mode='wb+') as file_object:
for chunk in pdf_file_object:
file_object.write(chunk)