splituser('user[:passwd]@host[:port]') --> 'user[:passwd]', 'host[:port]'.
(host)
| 1285 | |
| 1286 | |
| 1287 | def _splituser(host): |
| 1288 | """splituser('user[:passwd]@host[:port]') --> 'user[:passwd]', 'host[:port]'.""" |
| 1289 | user, delim, host = host.rpartition('@') |
| 1290 | return (user if delim else None), host |
| 1291 | |
| 1292 | |
| 1293 | def splitpasswd(user): |
no test coverage detected
searching dependent graphs…