Commit adc2692b authored by Pierre Cazenave's avatar Pierre Cazenave

Add a somewhat useful docstring.

parent 53c0f0a3
Pipeline #794 failed with stage
......@@ -27,6 +27,14 @@ class validation_db():
""" Work with an SQLite database. """
def __init__(self, db_name):
""" Create a new database `db_name'.
db_name : str
The path and name for the new database.
if db_name[-3:] != '.db':
db_name += '.db'
self.conn = sq.connect(db_name)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment