PATH:
opt
/
alt
/
python37
/
lib
/
python3.7
/
site-packages
/
lvestats
/
utils
/
dbmigrator-back
/
__pycache__
B @��c� � @ s� d dl mZ d dlZd dlmZmZmZ d dlmZ ddd�Z e d kr�e�� Zej d ddd d� e�� Zejrze dd� n e d d� dS )� )�absolute_importN)�minidom�DOMException�NotFoundErr)� ExpatError�!/etc/container/mysql-governor.xmlTc C s� yt �| �}W n tttfk r( Y nrX y4|rH|�d�d �dd� n|�d�d �d� W n tt t fk rx Y n"X t| d��}|�|� W dQ R X dS )zI :param str config_path: :param bool save_uid: :return: Z statisticr �save_uidZOn�wN) r �parse�IOErrorr r ZgetElementsByTagNameZsetAttributeZremoveAttributer � IndexError�KeyError�openZwritexml)Zconfig_pathr Zgovernor_configZconfig_file� r �\/opt/alt/python37/lib/python3.7/site-packages/lvestats/utils/dbmigrator/dbgovernor_config.py�set_governor_save_uid s r �__main__z --save_uid� store_truer F)�action�dest�default)r )r T)Z __future__r �argparseZxml.domr r r Zxml.parsers.expatr r �__name__�ArgumentParser�parser�add_argument� parse_argsZoptsr r r r r �<module> s
[-] dbmigrate.cpython-37.opt-1.pyc
[edit]
[-] trash_cleaner.cpython-37.pyc
[edit]
[-] dbmigrate_lib.cpython-37.pyc
[edit]
[-] __init__.cpython-37.pyc
[edit]
[-] env.cpython-37.pyc
[edit]
[-] dbmigrate_lib.cpython-37.opt-1.pyc
[edit]
[-] dbgovernor_config.cpython-37.opt-1.pyc
[edit]
[-] dbmigrate.cpython-37.pyc
[edit]
[-] trash_cleaner.cpython-37.opt-1.pyc
[edit]
[-] dbgovernor_config.cpython-37.pyc
[edit]
[+]
..
[-] env.cpython-37.opt-1.pyc
[edit]
[-] __init__.cpython-37.opt-1.pyc
[edit]