From 5476754f1d58248b7c6e2830cc71cff778c2790d Mon Sep 17 00:00:00 2001 From: Marcel Hellkamp Date: Sat, 3 Oct 2020 16:32:01 +0200 Subject: [PATCH] It's 2020 --- setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 6b4af7b..ba45a5c 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,8 @@ except ImportError: # common variables. We cannot just import the module because it depends on other # modules that might not be installed yet. filename = os.path.join(os.path.dirname(__file__), 'bottle_sqlite.py') -source = open(filename).read().split('### CUT HERE')[0] +with open(filename) as fp: + source = fp.read().split('### CUT HERE')[0] exec(source) setup( @@ -30,7 +31,7 @@ setup( 'bottle_sqlite' ], requires = [ - 'bottle (>=0.9)' + 'bottle (>=0.12)' ], classifiers = [ 'Environment :: Web Environment',