ÿØÿà JFIF      ÿÛ „ 	 ( %!1!%)+//.383,7(-.+



-%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ  ¥2" ÿÄ               ÿÄ J  	     ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ              ÿÄ *        !1AQa‘"2q3±ð#b¡ÿÚ   ? ¼QxJQaÍuò¸Zö Úü8,ÐÚú
"SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁT­ÃÛ5
ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßw­pŽF|È¥ù®häðÍÑ¶¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e
ríV
..............................................................................................................................................................................
.............................................................................                                                  
                                                                                                                                                                                     ÿØÿà JFIF      ÿÛ „ 	 ( %!1!%)+//.383,7(-.+



-%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ  ¥2" ÿÄ               ÿÄ J  	     ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ              ÿÄ *        !1AQa‘"2q3±ð#b¡ÿÚ   ? ¼QxJQaÍuò¸Zö Úü8,ÐÚú
"SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁT­ÃÛ5
ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßw­pŽF|È¥ù®häðÍÑ¶¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e
ríV
..............................................................................................................................................................................
.............................................................................                                                  
                                                                                                                                                                                     
Yc           @@  s   d  d l  m Z d  d l Z y d  d l Z Wn e k
 rE d Z n Xd  d l m Z d d l	 m
 Z
 d
 Z d d  Z d	   Z d S(   i    (   t   absolute_importN(   t	   text_typei   (   t   InvalidGitRepositoryt   fetch_git_shat   fetch_package_versionc   
      C@  s?  | s t  j j |  d d  } t  j j |  sF t d |  f   n  t | d   } t | j    j   } Wd QX| j	 d  r | d } t  j j |  d | j
 d   } q | Sn t  j j |  d d	 d
 |  } t  j j |  st  j j t  j j |  d   s!t d |  f   n  t  j j |  d d  } t  j j |  rt | d   } x | D]} } | j   } | sqdn  | d  d k rqdn  y | j
 d d  \ } }	 Wn t k
 rqdn X|	 | k rdt |  SqdWWd QXn  t d | f   n  t | d  } z t | j    j   SWd | j   Xd S(   s6   
    >>> fetch_git_sha(os.path.dirname(__file__))
    s   .gitt   HEADs-   Cannot identify HEAD for git repository at %st   rNs   ref: i   t   /t   refst   headss3   %s does not seem to be the root of a git repositorys   packed-refsi   t   #t   ^t    s-   Unable to find ref to head "%s" in repository(   R
   R   (   t   ost   patht   joint   existsR   t   openR   t   readt   stript
   startswitht   splitt   rstript
   ValueErrort   close(
   R   t   headt	   head_patht   fpt   revision_filet   packed_filet   fht   linet   revisiont   ref(    (    sA   /opt/alt/python27/lib/python2.7/site-packages/raven/versioning.pyR      sL    
	!c         C@  s1   t  d k r t d   n  t  j |   } | j S(   s-   
    >>> fetch_package_version('sentry')
    s5   pkg_resources is not available on this Python installN(   t   pkg_resourcest   Nonet   NotImplementedErrort   get_distributiont   version(   t	   dist_namet   dist(    (    sA   /opt/alt/python27/lib/python2.7/site-packages/raven/versioning.pyR   I   s    (   R   R   (   t
   __future__R    t   os.pathR   R"   t   ImportErrorR#   t   raven.utils.compatR   t
   exceptionsR   t   __all__R   R   (    (    (    sA   /opt/alt/python27/lib/python2.7/site-packages/raven/versioning.pyt   <module>   s   
8