Skip to content

Commit 2bb3852

Browse files
committed
Accept arbitrary keywords with api.Connector and normalize doc-string.
1 parent a91574c commit 2bb3852

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

postgresql/api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,6 +1129,7 @@ def __init__(self,
11291129
database : str = None,
11301130
settings : (dict, [(str,str)]) = None,
11311131
category : Category = None,
1132+
**kw,
11321133
):
11331134
if user is None:
11341135
# sure, it's a "required" keyword, makes for better documentation

postgresql/driver/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,7 @@
1010
default = Driver()
1111

1212
def connect(*args, **kw):
13-
'Establish a connection using the default driver.'
13+
"""
14+
Establish a connection using the default driver.
15+
"""
1416
return default.connect(*args, **kw)

0 commit comments

Comments
 (0)