Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion asyncpg/connect_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def _parse_connect_dsn_and_args(*, dsn, host, port, user,

if parsed.netloc:
if '@' in parsed.netloc:
dsn_auth, _, dsn_hostspec = parsed.netloc.partition('@')
dsn_auth, dsn_hostspec = parsed.netloc.rsplit('@', maxsplit=1)
else:
dsn_hostspec = parsed.netloc
dsn_auth = ''
Expand Down