def http_scheme(self):
    ' Either "http:" or "https:", depending on the user\'s preferences '
    return ('http:' if self._downloader.params.get('prefer_insecure', False) else 'https:')
Either "http:" or "https:", depending on the user's preferences
def http_scheme(self):
    ' Either "http:" or "https:", depending on the user\'s preferences '
    return ('http:' if self._downloader.params.get('prefer_insecure', False) else 'https:')