ó
rÁìVc           @   sÌ   y d  d l  Z  Wn! e k
 r3 d  d l m  Z  n Xy d  d l m Z Wn! e k
 rk d  d l m Z n Xd  d l Z e j d d k Z e j d d k Z	 e	 r³ e
 Z e
 Z n e Z e Z d „  Z d S(   iÿÿÿÿN(   t	   importlib(   t
   dictConfigi    i   i   c         C   s4   |  j  d d ƒ \ } } t j | ƒ } t | | ƒ S(   sB   Return an attribute from a dotted path name (e.g. "path.to.func").t   .i   (   t   rsplitR    t   import_modulet   getattr(   t   namet   module_namet	   attributet   module(    (    sk   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/django_post_office-2.0.6-py2.7.egg/post_office/compat.pyt   import_attribute   s    (   R    t   ImportErrort   django.utilst   logging.configR   t   django.utils.logt   syst   version_infot   PY2t   PY3t   strt   string_typest	   text_typet
   basestringt   unicodeR
   (    (    (    sk   /opt/seafile/seafile-server-5.1.3/seahub/thirdpart/django_post_office-2.0.6-py2.7.egg/post_office/compat.pyt   <module>   s    	