File: //usr/lib/python3.6/site-packages/babel/messages/__pycache__/mofile.cpython-36.opt-1.pyc
3
4\0X~ � @ 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 by the Babel Team.
:license: BSD, see LICENSE for more details.
� N)�Catalog�Message)�
range_type�
array_tobytesl �* l �$< c sx t � � i }t| dd�}| j� }t|�}tj}|d|dd� �d }|tkrj|d|dd� �\}}} }
d }n4|tkr�|d
|dd� �\}}} }
d}ntdd|���x�t d|�D �]�}|||| | d
� �\}
}||
}||||
|
d
� �\}}|| }||k �r$||k �r$|||� }|||� }ntdd|��|
dk�r�d }}xv|j
� D ]j}|j� }|�sb�qLd|k�r�|jdd�\}}|j� j
� }}|j� ||<