Server : Apache System : Linux cs317.bluehost.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : andertr9 ( 1047) PHP Version : 8.2.18 Disable Function : NONE Directory : /lib64/python2.7/site-packages/gi/ |
Upload File : |
� �Zc @@ sW d d l m Z d d l m Z e e e � Z d d l Z d d l Z d d l Z d e j k rq e d � � n d d l m Z d d l m Z d d l m Z d d l m Z d d l m Z d d l m Z e Z e Z e Z i Z e j j e j j e � d � Z e j Z d j e � Z d � Z d � Z d � Z d � Z d d � Z! d S( i ( t absolute_import( t extend_pathNt gobjects� When using gi.repository you must not import static modules like "gobject". Please change all occurrences of "import gobject" to "from gi.repository import GObject".i ( t _gi( t _gobject( t _API( t Repository( t PyGIDeprecationWarning( t PyGIWarningt overridess {0}.{1}.{2}c C@ s_ t | t � r0 t t t | j d � � � } n | } | t k r[ t d | t f � � n d S( Nt .sN pygobject's version %s required, and available version %s is not recent enough( t isinstancet strt tuplet mapt intt splitt version_infot ValueErrort __version__( t versiont version_list( ( s1 /usr/lib64/python2.7/site-packages/gi/__init__.pyt check_version7 s !c C@ s� t j � } | | j � k rU | j | � } | | k rU t d | | f � � qU n | t k r� t | | k r� t d | t | f � � n | j | � } | s� t d | � � n | | k r� t d | | f � � n | t | <d S( s� Ensures the correct versions are loaded when importing `gi` modules. :param namespace: The name of module to require. :type namespace: str :param version: The version of module to require. :type version: str :raises ValueError: If module/version is already loaded, already required, or unavailable. :Example: .. code-block:: python import gi gi.require_version('Gtk', '3.0') s. Namespace %s is already loaded with version %ss( Namespace %s already requires version %ss Namespace %s not availables) Namespace %s not available for version %sN( R t get_defaultt get_loaded_namespacest get_versionR t _versionst enumerate_versions( t namespaceR t repositoryt loaded_versiont available_versions( ( s1 /usr/lib64/python2.7/site-packages/gi/__init__.pyt require_versionD s c C@ s. x'