Did I find the right examples for you? yes no

All Samples(24)  |  Call(22)  |  Derive(0)  |  Import(2)
Concatenates multi part strings into urls

        def urljoin(*fragments):
    """Concatenates multi part strings into urls"""

    return '/'.join(fragments)
        


src/m/o/mozdownload-1.11.1/mozdownload/scraper.py   mozdownload(Download)
from parser import DirectoryParser
from timezones import PacificTimezone
from utils import urljoin
 
import progressbar
        # build the base URL
        self.application = application
        self.base_url = urljoin(base_url, self.application)
 
        attempt = 0
    def final_url(self):
        """Return the final URL of the build"""
 
        return urljoin(self.path, self.binary)
 
    @property
    def path(self):
        """Return the path to the build"""
 
        return urljoin(self.base_url, self.path_regex)
    def get_latest_build_date(self):
        """ Returns date of latest available nightly build."""
        url = urljoin(self.base_url, 'nightly', 'latest-%s/' % self.branch)
 
        self.logger.info('Retrieving the build status file from %s' % url)

src/m/o/mozdownload-HEAD/mozdownload/scraper.py   mozdownload(Download)
from parser import DirectoryParser
from timezones import PacificTimezone
from utils import urljoin
 
import progressbar
        # build the base URL
        self.application = application
        self.base_url = urljoin(base_url, self.application)
 
        attempt = 0
    def final_url(self):
        """Return the final URL of the build"""
 
        return urljoin(self.path, self.binary)
 
    @property
    def path(self):
        """Return the path to the build"""
 
        return urljoin(self.base_url, self.path_regex)
    def get_latest_build_date(self):
        """ Returns date of latest available nightly build."""
        url = urljoin(self.base_url, 'nightly', 'latest-%s/' % self.branch)
 
        self.logger.info('Retrieving the build status file from %s' % url)