splituser('user[:passwd]@host[:port]') --> 'user[:passwd]', 'host[:port]'.
(host)
| 1105 | |
| 1106 | |
| 1107 | def _splituser(host): |
| 1108 | """splituser('user[:passwd]@host[:port]') --> 'user[:passwd]', 'host[:port]'.""" |
| 1109 | user, delim, host = host.rpartition('@') |
| 1110 | return (user if delim else None), host |
| 1111 | |
| 1112 | |
| 1113 | def splitpasswd(user): |
no test coverage detected