Current File : //usr/lib/python2.7/site-packages/babel/messages/pofile.pyc |
�
��Mc @ s� d Z d d l m Z m Z d d l Z d d l Z d d l m Z d d l m Z m
Z
d d l m Z m
Z
m Z d d g Z d Z d
� Z d � Z d d e d � Z e j d
� Z d � Z d d d � Z d e e e e e e d � Z d S( s� Reading and writing of files in the ``gettext`` PO (portable object)
format.
:see: `The Format of PO Files
<http://www.gnu.org/software/gettext/manual/gettext.html#PO-Files>`_
i����( t datet datetimeN( t __version__( t Catalogt Message( t sett wraptextt LOCALTZt read_pot write_pos restructuredtext enc C sG | d d !j d d � j d d � j d d � j d d
� j d d � S(
s� Reverse `escape` the given string.
>>> print unescape('"Say:\\n \\"hello, world!\\"\\n"')
Say:
"hello, world!"
<BLANKLINE>
:param string: the string to unescape
:return: the unescaped string
:rtype: `str` or `unicode`
i i����s \\s \s \ts s \rs
s \ns
s \"s "( t replace( t string( ( s9 /usr/lib/python2.7/site-packages/babel/messages/pofile.pyt unescape s
c C s^ | j d � rP g } x+ | j � d D] } | j t | � � q&