ok

Mini Shell

Direktori : /proc/thread-self/root/usr/lib64/python2.7/site-packages/gi/
Upload File :
Current File : //proc/thread-self/root/usr/lib64/python2.7/site-packages/gi/__init__.pyo

�
QLZc@@sWddlmZddlmZeee�ZddlZddlZddlZdej	krqe
d��nddlmZddlm
Z
dd	lmZdd
lmZddlmZddlmZeZeZeZiZejjejje�d
�Ze
jZdje�Zd�Zd�Zd�Zd�Zdd�Z!dS(i(tabsolute_import(textend_pathNtgobjects�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(tPyGIDeprecationWarning(tPyGIWarningt	overridess{0}.{1}.{2}cC@s_t|t�r0ttt|jd���}n|}|tkr[td|tf��ndS(Nt.sNpygobject's version %s required, and available version %s is not recent enough(	t
isinstancetstrttupletmaptinttsplittversion_infot
ValueErrort__version__(tversiontversion_list((s1/usr/lib64/python2.7/site-packages/gi/__init__.pyt
check_version7s!cC@s�tj�}||j�krU|j|�}||krUtd||f��qUn|tkr�t||kr�td|t|f��n|j|�}|s�td|��n||kr�td||f��n|t|<dS(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 %ssNamespace %s not availables)Namespace %s not available for version %sN(Rtget_defaulttget_loaded_namespacestget_versionRt	_versionstenumerate_versions(t	namespaceRt
repositorytloaded_versiontavailable_versions((s1/usr/lib64/python2.7/site-packages/gi/__init__.pytrequire_versionDs cC@s.x'|j�D]\}}t||�q
WdS(s3 Utility function for consolidating multiple `gi.require_version()` calls.

    :param requires: The names and versions of modules to require.
    :type requires: dict

    :Example:

    .. code-block:: python

        import gi
        gi.require_versions({'Gtk': '3.0', 'GLib': '2.0', 'Gio': '2.0'})
    N(titemsR (trequirestmodule_nametmodule_version((s1/usr/lib64/python2.7/site-packages/gi/__init__.pytrequire_versionsls
cC@stj|d�S(N(RtgettNone(R((s1/usr/lib64/python2.7/site-packages/gi/__init__.pytget_required_version}scC@sPytj||�Wn%tk
r;}tt|���nXtjd|�dS(s�Ensure the given foreign marshaling module is available and loaded.

    :param str namespace:
        Introspection namespace of the foreign module (e.g. "cairo")
    :param symbol:
        Optional symbol typename to ensure a converter exists.
    :type symbol: str or None
    :raises: ImportError

    :Example:

    .. code-block:: python

        import gi
        import cairo
        gi.require_foreign('cairo')

    s
gi.repositoryN(Rtrequire_foreignt	ExceptiontImportErrorRt	importlibt
import_module(Rtsymbolte((s1/usr/lib64/python2.7/site-packages/gi/__init__.pyR)�s
("t
__future__RtpkgutilRt__path__t__name__tsystosR,tmodulesR+tRRRRRRRtpathtjointdirnamet__file__t
_overridesdirtpygobject_versionRtformatRRR R%R(R'R)(((s1/usr/lib64/python2.7/site-packages/gi/__init__.pyt<module>s2!
	
	(		

Zerion Mini Shell 1.0