We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents acf5d5b + 75eaeff commit 9392592Copy full SHA for 9392592
pyexcelerate/Workbook.py
@@ -78,4 +78,5 @@ def _save(self, file_handle):
78
self._writer.save(file_handle)
79
80
def save(self, filename):
81
- self._save(open(filename, 'wb'))
+ with open(filename, 'wb') as fp:
82
+ self._save(fp)
0 commit comments