Your IP : 18.226.34.148
B
YI~d�w � @ s* d ddddddddd d
dgZ dd
lZdd
lZdd
lZdd
lZdd
lZddlmZ dd
lZdd
l Z dd
l
Z
dd
lZddlm
Z
ddlmZ ejdded�Ze� �ej� ejdd� �Zdd � Zdd� Zdd� Zdd� ZG dd� d�ZdZe
�d�ZdIdd�Z d d!� Z!e
�d"e
j"�Z#d#d$� Z$d%d&� Z%d'd(� Z&G d)d*� d*�Z'G d+d,� d,�Z(G d-d.� d.e(�Z)d/d0� Z*G d1d� de+�Z,d2d3d4d5d6�Z-e.� Z/G d7d8� d8�Z0d9d:� Z1e2e3e4eje5fZ6G d;d<� d<e.�Z7d=d>� Z8e9e:e*e'e)d?�e;e:e8e0e7d?�iZ<d
d@e:dA�dBd�Z=d
d@e:dA�dCd
�Z>e9d@dDdE�dFd �Z?e9dDd@dG�dHd�Z@d
S )J� readPlist�
writePlist�readPlistFromBytes�writePlistToBytes�Data�InvalidFileException�FMT_XML�
FMT_BINARY�load�dump�loads�dumps� N)�BytesIO)�warn)�ParserCreate�PlistFormatzFMT_XML FMT_BINARY)�modulec c s2 t | t�r(t| |��}|V W d Q R X n| V d S )N)�
isinstance�str�open)�
pathOrFile�mode�fp� r �-/opt/alt/python37/lib64/python3.7/plistlib.py�_maybe_openO s
r c C s0 t dtd� t| d��}t|d dd�S Q R X d S )Nz8The readPlist function is deprecated, use load() instead� �rbF)�fmt�use_builtin_types)r �DeprecationWarningr r )r r r r r r Y s c C s8 t dtd� t|d��}t| |tddd� W d Q R X d S )Nz9The writePlist function is deprecated, use dump() insteadr �wbTF)r � sort_keys�skipkeys)r r r r
r )�valuer r r r r r f s c C s t dtd� tt| �d dd�S )NzBThe readPlistFromBytes function is deprecated, use loads() insteadr F)r r )r r r r )�datar r r r s s c C s, t dtd� t� }t| |tddd� |�� S )NzAThe writePlistToBytes function is deprecated, use dumps() insteadr TF)r r"