관리-도구
편집 파일: universal.cpython-311.pyc
� P�Dg1 � �& � d Z dZddlZddlZddlmZmZ ddlmZ ddl m Z G d� de� � Z G d � d e� � Z G d� de� � Z G d � de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � ZdS )a� Transforms needed by most or all documents: - `Decorations`: Generate a document's header & footer. - `ExposeInternals`: Expose internal attributes. - `Messages`: Placement of system messages generated after parsing. - `FilterMessages`: Remove system messages below verbosity threshold. - `TestMessages`: Like `Messages`, used on test runs. - `StripComments`: Remove comment elements from the document tree. - `StripClassesAndElements`: Remove elements with classes in `self.document.settings.strip_elements_with_classes` and class values in `self.document.settings.strip_classes`. - `SmartQuotes`: Replace ASCII quotation marks with typographic form. �reStructuredText� N)�nodes�utils)� Transform)�smartquotesc �( � e Zd ZdZdZd� Zd� Zd� ZdS )�DecorationszD Populate a document's decoration element (header, footer). i4 c �j � | � � � }|rB| j � � � }|� � � }|� |� � | � � � }|rD| j � � � }|� � � }|� |� � d S d S �N)�generate_header�document�get_decoration� get_header�extend�generate_footer� get_footer)�self�header_nodes� decoration�header�footer_nodes�footers �}/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib/python3.11/site-packages/docutils/transforms/universal.py�applyzDecorations.apply&