| Server IP : 156.238.232.47 / Your IP : 216.73.216.150 Web Server : nginx/1.25.3 System : Linux C202504152095410 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : www ( 1000) PHP Version : 8.3.25 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON 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'