File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -725,11 +725,10 @@ def make_connection(
725
725
connection_string = urlparse (url )
726
726
query_string = parse_qs (connection_string .query )
727
727
728
- # Reverse the tuple, this way we can ensure that the host:port/user:pass
729
- # will be always at the same position
730
- host_port , _ , user_pass = connection_string .netloc .partition ("@" )[::- 1 ]
731
- user , password = user_pass .partition (":" )[0 ], user_pass .partition (":" )[2 ]
732
- host , port = host_port .partition (":" )[0 ], host_port .partition (":" )[2 ]
728
+ user = connection_string .username
729
+ password = connection_string .password
730
+ host = connection_string .hostname
731
+ port = connection_string .port
733
732
734
733
db = connection_string .path .replace ("/" , "" ) or None
735
734
auth_key = query_string .get ("auth_key" )
You can’t perform that action at this time.
0 commit comments