(self)
Select which implementation to use
Select which implementation to use
Select which implementation to use
def _select_implementation(self):
        """Select which implementation to use"""
        if GetURLpyCurl().is_available() and not self._curl_exec:
            self._geturl = GetURLpyCurl()
            self.cache_support = True
            Msg().out("Info: using pycurl", l=Msg.DBG)
        elif GetURLexeCurl().is_available():
            self._geturl = GetURLexeCurl()
            Msg().out("Info: using curl executable", self._geturl._curl_exec,
                      l=Msg.DBG)
        else:
            Msg().err("Error: need curl or pycurl to perform downloads")
            raise NameError('need curl or pycurl')
def _select_implementation ( self ) : if GetURLpyCurl ( ) . is_available ( ) and not self . _curl_exec : self . _geturl = GetURLpyCurl ( ) self . cache_support = True Msg ( ) . out ( "Info: using pycurl" , l = Msg . DBG ) elif GetURLexeCurl ( ) . is_available ( ) : self . _geturl = GetURLexeCurl ( ) Msg ( ) . out ( "Info: using curl executable" , self . _geturl . _curl_exec , l = Msg . DBG ) else : Msg ( ) . err ( "Error: need curl or pycurl to perform downloads" ) raise NameError ( 'need curl or pycurl' )