ó
 m[c           @` s  d  Z  d d l m Z m Z m Z m Z d d l Z d d l Z d d l Z d e j	 k rj d d l
 Z
 nr d e j	 k rˆ d d l Z
 nT y d d l
 Z
 WnA e k
 rÛ y d d l Z
 WqÜ e k
 r× e d ƒ ‚ qÜ Xn Xe
 j d d ƒ e ƒ  j d	 „  d
 d d d g Dƒ ƒ d S(   u„  
GObject compatibility loader; supports ``gi`` and ``pgi``.

The binding selection rules are as follows:
- if ``gi`` has already been imported, use it; else
- if ``pgi`` has already been imported, use it; else
- if ``gi`` can be imported, use it; else
- if ``pgi`` can be imported, use it; else
- error out.

Thus, to force usage of PGI when both bindings are installed, import it first.
i    (   t   absolute_importt   divisiont   print_functiont   unicode_literalsNu   giu   pgiu*   The Gtk3 backend requires PyGObject or pgiu   Gtku   3.0c         C` s1   i  |  ]' } t  j d  j t j | ƒ ƒ | “ q S(   u   {}.repository.{}(   t	   importlibt   import_modulet   formatt   git   __name__(   t   .0t   name(    (    s?   lib/python2.7/site-packages/matplotlib/backends/_gtk3_compat.pys
   <dictcomp>'   s   	u   GLibu   GObjectu   Gdk(   t   __doc__t
   __future__R    R   R   R   t   sixR   t   syst   modulesR   t   pgit   ImportErrort   require_versiont   globalst   update(    (    (    s?   lib/python2.7/site-packages/matplotlib/backends/_gtk3_compat.pyt   <module>   s&   "	