文件操作 - augeas.cpython-310.pyc
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/python3/dist-packages/__pycache__/augeas.cpython-310.pyc
编辑文件内容
o �XT\ � @ s� d Z dZdZddlZddlZddlZddlmZ ddl m Z edkZdZer)e ZneZd d � Zdd� Zd d� ZG dd� de�ZG dd� de�ZdS )a� Pure python bindings for the augeas library Augeas is a library for programmatically editing configuration files. Augeas parses configuration files into a tree structure, which it exposes through its public API. Changes made through the API are written back to the initially read files. The transformation works very hard to preserve comments and formatting details. It is controlled by ``lens'' definitions that describe the file format and the transformation into a tree. z/Nathaniel McCallum <nathaniel@natemccallum.com>z�Jeff Schroeder <jeffschroeder@computer.org> Harald Hoyer <harald@redhat.com> - initial python bindings, packaging Nils Philippsen <nils@redhat.com> � N)�version_info)�reduce)� �utf8c C � | r| � t�S d S �N)�encode�AUGENC��st� r �(/usr/lib/python3/dist-packages/augeas.py�enc: � �r c C r r )�decoder r r r r �dec? r r c G s@ dd� dd� | D �D �}t dd� |d�}|std| d ��|S ) z]Search for one of the libraries given as arguments and load it. Returns the library. c S s g | ]}|r|�qS r r )�.0�lr r r � <listcomp>H s z_dlopen.<locals>.<listcomp>c S s g | ]}t j�|��qS r )�ctypes�util�find_library)r �ar r r r H s c S s | pt j�|�S r )r �cdll�LoadLibrary)�x�yr r r �<lambda>I s z_dlopen.<locals>.<lambda>NzUnable to import lib%s!r )r �ImportError)�args�libs�libr r r �_dlopenD s r"