ó
lÁìVc           @   sÉ   d  d l  m Z d  d l Z d  d l m Z m Z m Z d  d l m Z d  d l	 m
 Z
 d  d l m Z d d d	 d
 d d d g Z d Z d Z d Z d Z d d d „ Z d „  Z d d d d „ Z d S(   iÿÿÿÿ(   t   import_moduleN(   t   RegexURLPatternt   RegexURLResolvert   LocaleRegexURLResolver(   t   ImproperlyConfigured(   t   six(   t   RemovedInDjango110Warningt
   handler400t
   handler403t
   handler404t
   handler500t   includet   patternst   urls!   django.views.defaults.bad_requests'   django.views.defaults.permission_denieds$   django.views.defaults.page_not_founds"   django.views.defaults.server_errorc         C   sß   | r | r t  d ƒ ‚ n  t |  t ƒ rR | r@ t d ƒ ‚ n  |  \ } } } n |  } t | t j ƒ ry t | ƒ } n  t | d | ƒ } t | t t f ƒ rÒ x/ | D]$ } t | t	 ƒ r§ t d ƒ ‚ q§ q§ Wn  | | | f S(   Ns0   Must specify a namespace if specifying app_name.sL   Cannot override the namespace for a dynamic module that provides a namespacet   urlpatternss:   Using i18n_patterns in an included URLconf is not allowed.(
   t
   ValueErrort
   isinstancet   tupleR   R   t   string_typesR    t   getattrt   listR   (   t   argt	   namespacet   app_namet   urlconf_moduleR   t   url_pattern(    (    sg   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/conf/urls/__init__.pyR      s     c         G   s‡   t  j d t d d ƒg  } xd | D]\ } t | t t f ƒ rS t d |  | Œ } n t | t ƒ rr | j |  ƒ n  | j	 | ƒ q# W| S(   NsŸ   django.conf.urls.patterns() is deprecated and will be removed in Django 1.10. Update your urlpatterns to be a list of django.conf.urls.url() instances instead.t
   stackleveli   t   prefix(
   t   warningst   warnR   R   R   R   R   R   t
   add_prefixt   append(   R   t   argst   pattern_listt   t(    (    sg   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/conf/urls/__init__.pyR   1   s    t    c         C   s¶   t  | t t f ƒ r@ | \ } } } t |  | | d | d | ƒSt  | t j ƒ rŸ t j d | t d d ƒ| s… t	 d |  ƒ ‚ n  | rŸ | d | } qŸ n  t
 |  | | | ƒ Sd  S(   NR   R   s€   Support for string view arguments to url() is deprecated and will be removed in Django 1.10 (got %s). Pass the callable instead.R   i   s:   Empty URL pattern view name not permitted (for pattern %r)t   .(   R   R   R   R   R   R   R   R   R   R   R   (   t   regext   viewt   kwargst   nameR   R   R   R   (    (    sg   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/conf/urls/__init__.pyR   B   s    (   t	   importlibR    R   t   django.core.urlresolversR   R   R   t   django.core.exceptionsR   t   django.utilsR   t   django.utils.deprecationR   t   __all__R   R   R	   R
   t   NoneR   R   R   (    (    (    sg   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/Django-1.8.10-py2.7.egg/django/conf/urls/__init__.pyt   <module>   s   	