(self, url)
return('https://code.launchpad.net/+branch/%s' % url)
Look for the number in the supplied string and return it as a URL
Look for the number in the supplied string and return it as a URL
Look for the number in the supplied string and return it as a URL
def callback(self, url):
        """Look for the number in the supplied string and return it as a URL"""
        if url.startswith('lp:'):
            url = url[3:]
        return('https://code.launchpad.net/+branch/%s' % url)
def callback ( self , url ) : if url . startswith ( 'lp:' ) : url = url [ 3 : ] return ( 'https://code.launchpad.net/+branch/%s' % url )