File: //snap/core22/current/lib/python3/dist-packages/babel/messages/__pycache__/mofile.cpython-310.pyc
o
V��\$ � @ 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-2019 by the Babel Team.
:license: BSD, see LICENSE for more details.
� N)�Catalog�Message)�
range_type�
array_tobytesl �* l �$< c sZ t � � i }t| dd�}| �� }t|�}tj}|d|dd� �d }|tkr5|d|dd� �\}}} }
d }n|tkrI|d
|dd� �\}}} }
d}ntdd|��t d|�D ]�}|||| | d
� �\}
}||
}||||
|
d
� �\}}|| }||k r�||k r�|||� }|||� }ntdd|��|
dkr�d }}|�
� D ]0}|�� }|s�q�d|v r�|�dd�\}}|�� �
� }}|�� ||<