Plan 9 from Bell Labs’s /usr/web/sources/contrib/jas/root/sys/lib/python2.7/site-packages/mercurial/i18n.pyc

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


��@s�ddlZddlZddlZddlZeedd�dk	rTejZneZej	j
e�Zx<dD]4Zej	j
eed�Zej	je�rsPqsqsWejdede�Zd�Zd	�Ze�r�
�ZneZdS(i�Ntfrozent.s..tlocalethgtfallbackcCs�|dkr|S|jd�}djg|D]!}|rGtj|�pJd^q,�}y|jtjd�SWntk
r�|SXdS(s'Translate message.

    The message is looked up in the catalog to get a Unicode string,
    which is encoded in the local encoding before being returned.

    Important: message is restricted to characters in the encoding
    given by sys.getdefaultencoding() which is most likely 'ascii'.
    s

u

ttreplaceN(tNonetsplittjointttugettexttencodetencodingtLookupError(tmessaget
paragraphstptu((s2/sys/lib/python2.7/site-packages/mercurial/i18n.pytgettexts7
cCsPdtjkr"dtjkr"tStjjdd�j�jd�}d|kS(NtHGPLAINt
HGPLAINEXCEPTRt,ti18n(tostenvirontFalsetgettstripR(t
exceptions((s2/sys/lib/python2.7/site-packages/mercurial/i18n.pyt_plain6s$cCs|S(N((R((s2/sys/lib/python2.7/site-packages/mercurial/i18n.pyt<lambda>=s(Rs..(R
RtsysRtgetattrRt
executabletmodulet__file__tpathtdirnametbasetdirR	t	localedirtisdirttranslationtTrueR
Rt_(((s2/sys/lib/python2.7/site-packages/mercurial/i18n.pyt<module>s$
			

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.