관리-도구
편집 파일: remove_ubc.cpython-311.pyc
� �EBg� � �� � d dl Z d dlZd dlmc mZ dZ e j � � Zed � d� � dk rdZda dadada dadadadad Zed z Zd� Zd� Zd � Zedk r e� � dS dS )� N� � z el5.lve0.8���� � �falsez/etc/container/ve.cfgz.tmpc �F � | � ddd�� � } | � dd� � � dd� � } t j | � � }|� d�� � }|st dt � �� � �t t d� � 5 }|� |� � |� � � t j |� � � � � d d d � � n# 1 swxY w Y t j t t � � d S ) N�utf-8r )�encoding�indent�newl� � �r z Rejected attempt to write empty �wb)�toprettyxml�replace�xml�parseString�RuntimeError�VE_CFG_PATH�open�VE_CFG_PATH_TMP�write�flush�os�fsync�fileno�rename)� xml_config�new_xml�buf�fs �py/remove_ubc.py�save_xmlr% ! s6 � ��'�'���"�'�M�M�J��#�#�D�"�-�-�5�5�d�B�?�?�J��o�j�)�)�G� � � �w� � /� /�C�� M��K�k�K�K�L�L�L� �o�t� $� $� �� ������� ��� � � � ����������� � � � � � � � � � ���� � � � � �I�o�{�+�+�+�+�+s �AC7�7C;�>C;c �& � t j t � � an3# t $ r& t d� � t j d� � Y nw xY w t � d� � d a n3# t $ r& t d� � t j d� � Y nw xY w t � d� � d � d� � d � d� � at an# t $ r daY nw xY w t � d � � d a n# t $ r t d � � Y nw xY w t � d� � an# t $ r Y nw xY w t � d� � an# t $ r Y nw xY wi a t# t � d � � d � d� � � � t d <