diff options
author | Rogelio Mita <rogeliomita@activitycentral.com> | 2013-09-06 13:55:53 (GMT) |
---|---|---|
committer | Rogelio Mita <rogeliomita@activitycentral.com> | 2013-09-06 13:55:53 (GMT) |
commit | c2e040258dfb4e0524a819ce90540b622af16178 (patch) | |
tree | 5230d7a0941f1c5ebafa148bd88130d4ef9ac8ff | |
parent | adebc802e54285ecaa99f379b92a6095c5b8e6a8 (diff) |
explicitly close file line is removed, open file context manager do this in implicit way
-rw-r--r-- | webapp/polls/models.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/webapp/polls/models.py b/webapp/polls/models.py index 05db80f..72a8f54 100644 --- a/webapp/polls/models.py +++ b/webapp/polls/models.py @@ -879,7 +879,6 @@ class Field(AbstractObject, ComponentStructure): with open(img_path, 'wb+') as dst: for chunk in img_file.chunks(): dst.write(chunk) - dst.close() def store_image(self, path): if self.uploaded_file: |