o —~µ_† ã@snddlmZddlZddlmZddlmZddlmZddlZddl m Z Gdd „d e ƒZ ej   d e ¡dS) é)ÚstrN)Úlog)Úutil)ÚBackendExceptioné)Ú PyraxBackendc@seZdZdZdd„ZdS)Ú HubicBackendz' Backend for Hubic using Pyrax c Csútjj ||¡zddl}Wnty"}ztdt|ƒƒ‚d}~ww| dd¡t j   d¡}t j   |¡r`z|  |¡Wn'ty_}zt d|jjt |¡ftjj¡WYd}~n d}~wwtdƒ‚|j  d¡}|jj|_|jj|_|j |¡|_dS) NrzPHubic backend requires the pyrax library available from Rackspace. Exception: %sÚ identity_typez5duplicity.backends.pyrax_identity.hubic.HubicIdentityz~/.hubic_credentialsz7Connection failed, please check your credentials: %s %sz#No ~/.hubic_credentials file found.ú/) Ú duplicityÚbackendÚBackendÚ__init__ÚpyraxÚ ImportErrorrrÚ set_settingÚosÚpathÚ expanduserÚexistsÚset_credential_fileÚ ExceptionrÚ FatalErrorÚ __class__Ú__name__rÚuexcÚ ErrorCodeÚconnection_failedÚlstripÚ exceptionsÚClientExceptionÚ client_excÚ NoSuchObjectÚnso_excÚ cloudfilesÚcreate_containerÚ container)ÚselfÚ parsed_urlrÚeÚCREDENTIALS_FILEr&©r+úA/usr/lib/python3/dist-packages/duplicity/backends/hubicbackend.pyr$s6 þ€ÿ   ÿþ€ÿ   zHubicBackend.__init__N)rÚ __module__Ú __qualname__Ú__doc__rr+r+r+r,r s rzcf+hubic)Úbuiltinsrrr rrÚduplicity.errorsrÚduplicity.backendÚ _cf_pyraxrrr Úregister_backendr+r+r+r,Ús     $