ó
xTc           @   s,   d  d l  m Z d Z d   Z d   Z d S(   i˙˙˙˙(   t   commons   CATH databasec           C   s,   t  j d d  s( t d t t   n  d  S(   Nt   urls   http://www.cathdb.infos   Cannot contact %s(   R    t	   is_onlinet   RuntimeErrort   strt   NAME(    (    (    sH   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/phaser/pipeline/proxy/cath.pyt   check   s    c         C   s   t  j d d |  j    S(   NR   s&   http://www.cathdb.info/pdb/%s?view=xml(   R    t   Downloadt   lower(   t
   identifier(    (    sH   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/phaser/pipeline/proxy/cath.pyt   fetch   s    	N(   t   phaser.pipeline.proxyR    R   R   R
   (    (    (    sH   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/py2/phaser/pipeline/proxy/cath.pyt   <module>   s   	