文件操作 - misc.cpython-311.pyc
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/python3/dist-packages/docutils/transforms/__pycache__/misc.cpython-311.pyc
编辑文件内容
� N=&b � �z � d Z dZddlmZ ddlmZ G d� de� � Z G d� de� � Z G d � d e� � ZdS )z Miscellaneous transforms. �reStructuredText� )�nodes)� Transformc � � e Zd ZdZdZd� ZdS )�CallBacka� Inserts a callback into a document. The callback is called when the transform is applied, which is determined by its priority. For use with `nodes.pending` elements. Requires a ``details['callback']`` entry, a bound method or function which takes one parameter: the pending node. Other data can be stored in the ``details`` attribute or in the object hosting the callback method. i� c �t � | j } |j d |� � |j � |� � d S )N�callback)� startnode�details�parent�remove)�self�pendings �:/usr/lib/python3/dist-packages/docutils/transforms/misc.py�applyzCallBack.apply s<