SQLite context manager
Files
3+ 19
− 17
@@ -9,26 +9,28 @@ from .crypto import cert_from_bytes, get_cert_bytes, get_cert_common_name
@@ -44,24 +46,24 @@ def get_certs(db, identity, date):
Self sign-up has been disabled due to increased spam activity. If you want to get access, please send an email to a project owner (preferred) or at gitlab(at)nic(dot)cz. We apologize for the inconvenience.
Use context manager for both connection and cursor in db initial setup.
Also some tiny refactoring for module consistency.