Age | Commit message (Collapse) | Author |
|
Read connection details from file to make it easier to change host(s)
in use.
Use contextmanager to manage the connections.
|
|
Collect arguments from the CLI using argparse rather than sys.argv
directly.
|
|
|
|
Use the `with` context manager with database connections and cursors
to ensure that they are closed once they are no longer needed.
Where it was not feasible to use the `with` context manager without a
huge refactor/rewrite, the cursors and connections are closed manually.
|
|
See: <https://docs.python.org/2/library/2to3.html#2to3fixer-urllib>
|
|
Run `2to3-3.8 -f map -w .`
See: <https://docs.python.org/2/library/2to3.html#2to3fixer-map>
|
|
|
|
|