def parse_userinfo(cls, userinfo):
        '''Parse the userinfo and return username and password.'''
        username, sep, password = userinfo.partition(':')

        return username, password
Parse the userinfo and return username and password.