From ecf165993193baef87cc793831a32228ac7de0d1 Mon Sep 17 00:00:00 2001 From: Milan Matousek Date: Wed, 19 Jun 2019 13:08:54 +0200 Subject: [PATCH] add closing of files in modules/ --- main/modules/__pycache__/create.cpython-37.pyc | Bin 660 -> 677 bytes main/modules/__pycache__/delete.cpython-37.pyc | Bin 660 -> 677 bytes main/modules/__pycache__/drop.cpython-37.pyc | Bin 650 -> 667 bytes main/modules/__pycache__/index.cpython-37.pyc | Bin 672 -> 689 bytes main/modules/__pycache__/insert.cpython-37.pyc | Bin 660 -> 677 bytes main/modules/__pycache__/select.cpython-37.pyc | Bin 660 -> 677 bytes main/modules/create.py | 3 ++- main/modules/delete.py | 3 ++- main/modules/drop.py | 3 ++- main/modules/index.py | 1 + main/modules/insert.py | 3 ++- main/modules/select.py | 3 ++- 12 files changed, 11 insertions(+), 5 deletions(-) diff --git a/main/modules/__pycache__/create.cpython-37.pyc b/main/modules/__pycache__/create.cpython-37.pyc index 69634dfaa420bbf639542e40ce30b9610b41d316..a19dabf0b43e378e9ff908998b53eba61fe24cf7 100644 GIT binary patch delta 186 zcmbQjx|EgIiI${XS=36ZJ1*v(rSc*~;Q*N=PbAh(DImEfHmz$C3C1Qfi*mYB*lLP>T-X6FB diff --git a/main/modules/__pycache__/delete.cpython-37.pyc b/main/modules/__pycache__/delete.cpython-37.pyc index 2fb081f2bf0c101855b3e7d3c355525608ac1083..91f6df37cc0229f9fa65aa56d55c3b8dfb3b4fc9 100644 GIT binary patch delta 186 zcmbQjx|EgIiI$fsuD|En^_W5Ed>*Ax1t%j>$I}-Lv?CrWWy{5_}*o w6Odp5;$jekgAvTvWG)g0@@}!^CuOB3mw?5vX}-l_lbfGXnv-hB2seQl0Bvd~1poj5 delta 168 zcmbQu+QrK2#LLUY00d@2T(J@pc_%aKOPO2Rv+yrI-n;;uq diff --git a/main/modules/__pycache__/index.cpython-37.pyc b/main/modules/__pycache__/index.cpython-37.pyc index 83a8ee6164432751ea96d2dbad99c44b4df01b52..e6ffd50186b4ec546836162d60a0b1d2c1460edd 100644 GIT binary patch delta 179 zcmZ3$x{;OFiIf~HT1xDV7LRA6Qzz0&mVUwGmQks)$#|Y#VgOqVF0|1RLCoBK} delta 146 zcmdnUx`36}iIc4mh!y z!o?`W$T#^9qqis@kXyuqO7KpOVUo5I0t((@%TLNmO)e>7LRA6Qzzb5qVUwGmQks)$ N#|Y#VgOqVF0|1)78cSaORsIVZn3RTC&#oSKt%izzMR7JFu1N@_)X+AX%C)Z)^dl9dcaypx+5 zgCXX#a4`xo@-cEue#q!4$`7=#h!>UMn{3Y{tt1Q-yv3HEl$DxXQpAL+0<3{=at)IN E0Q&tdkN^Mx delta 142 zcmZ3=I)#{XS=36ZJ1*v(rSc*~;Q*N=PbAh(DImEfHmz$C3C1Qfi*mYB*lLP>HMIN63 diff --git a/main/modules/__pycache__/select.cpython-37.pyc b/main/modules/__pycache__/select.cpython-37.pyc index 07901ad04838e290ca612e21380c9f43f0fadcd8..2025e6dc0b5f3de7472365778449196203f67656 100644 GIT binary patch delta 186 zcmbQjx|EgIiIXi4H*vAv#G5su%(qzb3sUoLu@t2yrrcsn%P-1J zESX%$sKCfEc@kqVHwQ=;3m2mhBj4mtjGm$(Q;I->NCfBP048ZAKA_+&w)~{5)Z~&P OCR7z*4V;sEnIr(>G#^m_ diff --git a/main/modules/create.py b/main/modules/create.py index 97fa253..760338f 100644 --- a/main/modules/create.py +++ b/main/modules/create.py @@ -9,4 +9,5 @@ class create(object): with open('templates/create.html') as fh: index_f = fh.read() result = index_f.format(_title='create_strana', _heading='create') - return result \ No newline at end of file + fh.close() + return result diff --git a/main/modules/delete.py b/main/modules/delete.py index f3c0b86..4cfb52e 100644 --- a/main/modules/delete.py +++ b/main/modules/delete.py @@ -9,4 +9,5 @@ class delete(object): with open('templates/delete.html') as fh: index_f = fh.read() result = index_f.format(_title='delete_strana', _heading='delete') - return result \ No newline at end of file + fh.close() + return result diff --git a/main/modules/drop.py b/main/modules/drop.py index 01a30ff..9c2c026 100644 --- a/main/modules/drop.py +++ b/main/modules/drop.py @@ -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 \ No newline at end of file + fh.close() + return result diff --git a/main/modules/index.py b/main/modules/index.py index 5fdf934..b89c8c7 100644 --- a/main/modules/index.py +++ b/main/modules/index.py @@ -9,4 +9,5 @@ class wellcome(object): with open('templates/index.html') as fh: index_f = fh.read() result = index_f.format(_title='Titulni_strana', _heading='Vítejte!') + fh.close() return result diff --git a/main/modules/insert.py b/main/modules/insert.py index 36ae8d8..ff6b04f 100644 --- a/main/modules/insert.py +++ b/main/modules/insert.py @@ -9,4 +9,5 @@ class insert(object): with open('templates/insert.html') as fh: index_f = fh.read() result = index_f.format(_title='insert_strana', _heading='insert') - return result \ No newline at end of file + fh.close() + return result diff --git a/main/modules/select.py b/main/modules/select.py index f5977c1..88e0700 100644 --- a/main/modules/select.py +++ b/main/modules/select.py @@ -9,4 +9,5 @@ class select(object): with open('templates/select.html') as fh: index_f = fh.read() result = index_f.format(_title='select_strana', _heading='select') - return result \ No newline at end of file + fh.close() + return result