File: //lib/python3/dist-packages/xkit/__pycache__/xutils.cpython-312.pyc
�
p��O� � �D � d dl mZ d dl mZ ddl� d dlZ G d� de� Zy)� )�print_function)�unicode_literals� )�*Nc �V � � e Zd ZdZd� fd� Zd� Zd� Zd� Zdd�Zd� Z d� Z
d � Zd
� Z� xZ
S )�XUtilsz[Subclass with higher-level methods
See xorgparser.Parser for the low-level methodsc �, �� t t | � |� y �N)�superr �__init__)�self�source� __class__s ��-/usr/lib/python3/dist-packages/xkit/xutils.pyr zXUtils.__init__ s �� �
�f�d�$�V�,� c �l � | j � }|D ] }|| D ] }| j ||�� � �! y)z.Fix broken references to non-existent sections)�
identifierN)�get_broken_references�make_section)r
�broken_references�section� references r �fix_broken_referenceszXUtils.fix_broken_references sK � � �6�6�8��(� A�G�.�w�7�
A� ��!�!�'�i�!�@�
A� Ar c �, � d}| j |||� S )z�Get the driver in use in a section
If no driver is found it will return False.
For further information see get_value()�Driver)� get_value)r
r �position�options r �
get_driverzXUtils.get_driver'