splituser('user[:passwd]@host[:port]') --> 'user[:passwd]', 'host[:port]'.
(host)
| 1165 | |
| 1166 | |
| 1167 | def _splituser(host): |
| 1168 | """splituser('user[:passwd]@host[:port]') --> 'user[:passwd]', 'host[:port]'.""" |
| 1169 | user, delim, host = host.rpartition('@') |
| 1170 | return (user if delim else None), host |
| 1171 | |
| 1172 | |
| 1173 | def splitpasswd(user): |
no test coverage detected