/usr/lib64/python3.9/site-packages/gi/__pycache__
Edit: /usr/lib64/python3.9/site-packages/gi/__pycache__/importer.cpython-39.pyc (3365B)
a
bê²^y ã @ s” d dl Z d dlZd dlZd dlmZ d dlZddlmZmZ ddlm Z ddl
mZ ddlm
Z
e ¡ Zi Zedd „ ƒZd
d„ ZG dd
„ d
eƒZdS )é N)Úcontextmanageré )Ú
RepositoryÚRepositoryError)ÚPyGIWarning)Úget_introspection_module)Úload_overridesc c s^ t | ¡}dV |rdS | dv r$dS t | ¡dur6dS t | ¡}tjd| |dœ t|d� dS )aO A context manager which tries to give helpful warnings
about missing gi.require_version() which could potentially
break code if only an older version than expected is installed
or a new version gets introduced.
::
with _check_require_version("Gtk", stacklevel):
load_namespace_and_overrides()
N)ZGLibZGObjectZGioz±%(namespace)s was imported without specifying a version first. Use gi.require_version('%(namespace)s', '%(version)s') before import to ensure that the right version gets loaded.)Ú namespaceÚversion©Ú
stacklevel)Ú
repositoryÚ
is_registeredÚgiZget_required_versionZget_versionÚwarningsÚwarnr )r r Z
was_loadedr
© r ú1/usr/lib64/python3.9/site-packages/gi/importer.pyÚ_check_require_version* s
ýûr c C sZ t jdd… }|dkr"| rdS dS |dkr6| r2dS dS |dkrJ| rFdS dS | rRdS dS dS ) a2 Returns the stacklevel value for warnings.warn() for when the warning
gets emitted by an imported module, but the warning should point at the
code doing the import.
Pass import_hook=True if the warning gets generated by an import hook
(warn() gets called in load_module(), see PEP302)
Né )é r é )r r é é
)r r )ÚsysÚversion_info)Úimport_hookZ
py_versionr r r Úget_import_stacklevelQ s r c @ s&