Skip to content
Snippets Groups Projects
Commit 508e3d0d authored by David Douard's avatar David Douard
Browse files

Make the cur_arg argument optional in BaseDb.cursor()

just to make our life a bit easier...
parent 5cccdc84
No related branches found
No related tags found
1 merge request!372 small improvements
......@@ -92,7 +92,7 @@ class BaseDb:
if self.pool:
self.pool.putconn(self.conn)
def cursor(self, cur_arg):
def cursor(self, cur_arg=None):
"""get a cursor: from cur_arg if given, or a fresh one otherwise
meant to avoid boilerplate if/then/else in methods that proxy stored
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment