ó
žS]c           @@ s`   d  d l  m Z m Z d  d l m Z d  d l Z d  d l Z e j d e j  Z	 d   Z
 d S(   i    (   t   absolute_importt   print_function(   t
   is_unicodeNs   [^A-Za-z0-9-_]c         C@ sX   t  |   s' |  j d d d d  }  n  t j d |   }  d   } d j t | |    S(   su   A simple slugifier.

    This keeps ascii alphanumerics, -, and _, but replaces
    everything else with hyphen.
    t   encodings   utf-8t   errorst   replacet   NFCc         S@ sE   d t  |  d  k o! d k n r* d St j |   r= d S|  Sd  S(   Ni Ø  i    iĸÛ  t    t   -(   t   ordt   _remove_charst   match(   t   c(    (    s@   lib/python2.7/site-packages/anaconda_project/internal/slugify.pyR   "   s
    &R   (   R   t   decodet   unicodedatat	   normalizet   joint   map(   t   sR   (    (    s@   lib/python2.7/site-packages/anaconda_project/internal/slugify.pyt   slugify   s
    	
(   t
   __future__R    R   t$   anaconda_project.internal.py2_compatR   t   reR   t   compilet   UNICODER
   R   (    (    (    s@   lib/python2.7/site-packages/anaconda_project/internal/slugify.pyt   <module>   s
   