File: //proc/self/root/usr/lib/python3.9/site-packages/babel/messages/__pycache__/mofile.cpython-39.pyc
a
�`$ � @ sR d Z ddlZddlZddlmZmZ ddlmZmZ dZ dZ
dd� Zdd
d�ZdS )
z�
babel.messages.mofile
~~~~~~~~~~~~~~~~~~~~~
Writing of files in the ``gettext`` MO (machine object) format.
:copyright: (c) 2013-2021 by the Babel Team.
:license: BSD, see LICENSE for more details.
� N)�Catalog�Message)�
range_type�
array_tobytesl �* l �$< c sn t � � i }t| dd�}| �� }t|�}tj}|d|dd� �d }|tkrj|d|dd� �\}}} }
d }n4|tkr�|d
|dd� �\}}} }
d}ntdd|��t d|�D �]�}|||| | d
� �\}
}||
}||||
|
d
� �\}}|| }||k �r ||k �r |||� }|||� }ntdd|��|
dk�r�d }}|�
� D ]j}|�� }|�s\�qFd|v �r�|�dd�\}}|�� �
� }}|�� ||<