def _get_download_url(version, deprecated=False):
    """Return a URL for a given SDK version.
    """
    base_url = 'https://storage.googleapis.com/appengine-sdks/{0}/google_appengine_{1}.zip'
    if deprecated:
        return base_url.format('deprecated/{0}'.format(version.replace('.', '')), version)
    else:
        return base_url.format('featured', version)