add closing of files in modules/
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -9,4 +9,5 @@ class create(object):
|
|||||||
with open('templates/create.html') as fh:
|
with open('templates/create.html') as fh:
|
||||||
index_f = fh.read()
|
index_f = fh.read()
|
||||||
result = index_f.format(_title='create_strana', _heading='create')
|
result = index_f.format(_title='create_strana', _heading='create')
|
||||||
return result
|
fh.close()
|
||||||
|
return result
|
||||||
|
|||||||
@@ -9,4 +9,5 @@ class delete(object):
|
|||||||
with open('templates/delete.html') as fh:
|
with open('templates/delete.html') as fh:
|
||||||
index_f = fh.read()
|
index_f = fh.read()
|
||||||
result = index_f.format(_title='delete_strana', _heading='delete')
|
result = index_f.format(_title='delete_strana', _heading='delete')
|
||||||
return result
|
fh.close()
|
||||||
|
return result
|
||||||
|
|||||||
@@ -9,4 +9,5 @@ class drop(object):
|
|||||||
with open('templates/drop.html') as fh:
|
with open('templates/drop.html') as fh:
|
||||||
index_f = fh.read()
|
index_f = fh.read()
|
||||||
result = index_f.format(_title='drop_strana', _heading='drop')
|
result = index_f.format(_title='drop_strana', _heading='drop')
|
||||||
return result
|
fh.close()
|
||||||
|
return result
|
||||||
|
|||||||
@@ -9,4 +9,5 @@ class wellcome(object):
|
|||||||
with open('templates/index.html') as fh:
|
with open('templates/index.html') as fh:
|
||||||
index_f = fh.read()
|
index_f = fh.read()
|
||||||
result = index_f.format(_title='Titulni_strana', _heading='Vítejte!')
|
result = index_f.format(_title='Titulni_strana', _heading='Vítejte!')
|
||||||
|
fh.close()
|
||||||
return result
|
return result
|
||||||
|
|||||||
@@ -9,4 +9,5 @@ class insert(object):
|
|||||||
with open('templates/insert.html') as fh:
|
with open('templates/insert.html') as fh:
|
||||||
index_f = fh.read()
|
index_f = fh.read()
|
||||||
result = index_f.format(_title='insert_strana', _heading='insert')
|
result = index_f.format(_title='insert_strana', _heading='insert')
|
||||||
return result
|
fh.close()
|
||||||
|
return result
|
||||||
|
|||||||
@@ -9,4 +9,5 @@ class select(object):
|
|||||||
with open('templates/select.html') as fh:
|
with open('templates/select.html') as fh:
|
||||||
index_f = fh.read()
|
index_f = fh.read()
|
||||||
result = index_f.format(_title='select_strana', _heading='select')
|
result = index_f.format(_title='select_strana', _heading='select')
|
||||||
return result
|
fh.close()
|
||||||
|
return result
|
||||||
|
|||||||
Reference in New Issue
Block a user