3
T'ícó ã @ sØ d Z ddlmZ ddlmZ ddlmZmZmZm Z m
Z
mZmZm
Z
ddlmZmZ ddlmZ ddlmZ ddlmZ erdd lmZ ejeZG d
d deZdd
ddddddddddddddZG dd dZdS )zLSphinx core events.
Gracefully adapted from the TextPress system by Armin.
é )Údefaultdict)Ú
attrgetter)Ú
TYPE_CHECKINGÚAnyÚCallableÚDictÚListÚ
NamedTupleÚTupleÚType)ÚExtensionErrorÚSphinxError)Ú__)Úlogging)Úsafe_getattr)ÚSphinxc @ s e Zd ZU eeedS )Ú
EventListenerN)Ú__name__Ú
__module__Ú__qualname__ÚintÚidr ÚhandlerÚpriority© r r ú//tmp/pip-build-gk9425m9/sphinx/sphinx/events.pyr s
r Ú Úconfigzenv, added, changed, removedÚenvzenv, docnamez
env, docnameszdocname, source textz the doctree before being pickledz&env, read docnames, other env instancezenv, node, contnodezdomain, nodezdoctree, docnameÚ exception)zbuilder-initedz
config-initedzenv-get-outdatedzenv-get-updatedz
env-purge-doczenv-before-read-docszenv-check-consistencyzsource-readzdoctree-readzenv-merge-infozmissing-referencezwarn-missing-referencezdoctree-resolvedzenv-updatedzbuild-finishedc @ s e Zd ZdZdddddZedddd Zeeeed
ddZ edd
ddZ
f deeee
e df edddZf deeee
e df edddZdS )ÚEventManagerzEvent manager for Sphinx.r N)ÚappÚreturnc C s$ || _ tj | _tt| _d| _d S )Nr )r! Úcore_eventsÚcopyÚeventsr ÚlistÚ listenersÚnext_listener_id)Úselfr! r r r Ú__init__3 s
zEventManager.__init__)Únamer"