File: //opt/cloudlinux/venv/lib64/python3.11/site-packages/__pycache__/remove_ubc.cpython-311.opt-1.pyc
�
�ʘf) � � � d dl mZ d dl mZ d dlZd dlZd dlmc mZ dZ ej
� � Zed � d� � dk rdZ d a
d ad ad ad ad ad ad
adZedz Zd
� Zd� Zd� Zedk r e� � dS dS )� )�print_function)�absolute_importN� � z
el5.lve0.8���� � �falsez/etc/container/ve.cfgz.tmpc �F � | � ddd�� � } | � dd� � � dd� � } t j | � � }|� d�� � }|st dt
z � � �t
t d� � 5 }|� |� � |� � � t j |� � � � � d d d � � n# 1 swxY w Y t j
t t
� � d S ) Nzutf-8r )�encoding�indent�newl�
� )r z"Rejected attempt to write empty %s�wb)�toprettyxml�replace�xml�parseString� Exception�VE_CFG_PATH�open�VE_CFG_PATH_TMP�write�flush�os�fsync�fileno�rename)�XML�new_xml�buf�fs �py/remove_ubc.py�save_xmlr% ( s. � �
�/�/�7�2�B�/�
?�
?�C�
�+�+�d�B�
�
�
'�
'��b�
1�
1�C��o�c�"�"�G�
�
�
�w�
�
/�
/�C�� L��<�{�J�K�K�K�
�o�t� $� $� �� ������� ��� � � �
����������� � � � � � � � � � ���� � � � � �I�o�{�+�+�+�+�+s �AC7�7C;�>C;c �R � t j t � � an*# t d� � t j d� � Y nxY w t � d� � d an*# t d� � t j d� � Y nxY w t � d� � d � d� � d � d� � a
t an # daY nxY w t � d � � d an# t d
� � Y nxY w t � d� � a
n# Y nxY w t � d� � an# Y nxY wi a t! t � d
� � d � d� � � � t d
<