add closing of files in modules/

This commit is contained in:
2019-06-19 13:08:54 +02:00
parent 31ffc9e154
commit ecf1659931
12 changed files with 11 additions and 5 deletions

View File

@@ -9,4 +9,5 @@ class drop(object):
with open('templates/drop.html') as fh:
index_f = fh.read()
result = index_f.format(_title='drop_strana', _heading='drop')
return result
fh.close()
return result