HEX

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit - prohibited by configuration in /home/u547966/brikov.ru/www/wp-content/plugins/admin-menu-editor/menu-editor.php on line 745
Server: Apache
System: Linux 4.19.0-0.bpo.9-amd64 x86_64 at red40
User: u547966 (5490)
PHP: 5.3.29-mh2
Disabled: syslog, dl, popen, proc_open, proc_nice, proc_get_status, proc_close, proc_terminate, posix_mkfifo, chown, chgrp, accelerator_reset, opcache_reset, accelerator_get_status, opcache_get_status, pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority
Upload Files
File: //usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyc
ó
ÛXc	@@s&ddlmZddlZddlZddlZddlZddlmZmZm	Z	m
Z
mZmZej
Z
ejZiZe
jeƒZedƒd„ƒZddidfddkdfddmdfddndfdodpdqgZedƒed„ƒZedƒd„ƒZedƒd „ƒZed!ƒd"„ƒZed#ƒd$„ƒZed%ƒd&„ƒZdadad'd'd(„Zed)ƒd*„ƒZed+ƒd,„ƒZed-ƒd.„ƒZ ed/ƒd0„ƒZ!ed1ƒd2„ƒZ"ed3ƒd4„ƒZ#ed5ƒd6„ƒZ$d7„Z%ed8ƒd9„ƒZ&ed:ƒd;„ƒZ'ed<ƒd=„ƒZ(ed>ƒd?„ƒZ)ed@ƒdA„ƒZ*edBƒdC„ƒZ+edDƒdE„ƒZ,edFƒdG„ƒZ-edHƒdI„ƒZ.edJƒdK„ƒZ/edLƒdM„ƒZ0edNƒdO„ƒZ1edPƒdQ„ƒZ2edRƒdS„ƒZ3edTƒdU„ƒZ4edVƒdW„ƒZ5edXƒdY„ƒZ6edZƒd[„ƒZ7ed\ƒd]„ƒZ8ed^ƒd_„ƒZ9ed`ƒda„ƒZ:edbƒdc„ƒZ;eddƒde„ƒZ<df„Z=dg„Z>ej?ƒZ@dS(ri(tabsolute_importNi(tencodingthbisecttnodet	registrart
templatekwtutilt	addbreakscC@s|jddƒS(sZAny text. Add an XHTML "<br />" tag before the end of
    every line except the last.
    s
s<br/>
(treplace(ttext((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyR#styeariiimtYtmonthitMtweekitWtdaytdthourthtminutei<tmtsecondtstagec@s-d„‰‡‡fd†}tjƒ}|d}t}||krt}tdt||ƒƒ}|tdddkr¿dSn>tdt||ƒƒ}|tdddkr¿tj|ƒSxgtD]_\}}}	||}
|
dks÷|dkrÆ|rd|||
|	ƒSd	|||
|	ƒSqÆWd
S(ssDate. Returns a human-readable date/time difference between the
    given date/time and the current date/time.
    cS@s|dkr|S|dS(NiR((tttc((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pytplural8sc@s+ˆrd||fSd|ˆ||ƒfS(Ns%d%ss%d %s((RRta(tabbrevR(s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pytfmt<siiisin the distant futureis%s from nows%s agoN(ttimetFalsetTruetmaxtintt	agescalesRt	shortdate(tdateRRtnowtthentfuturetdeltaRRRtn((RRs=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyR2s&	


tbasenamecC@stjj|ƒS(sîAny text. Treats the text as a path, and returns the last
    component of the path after splitting by the path separator
    (ignoring trailing separators). For example, "foo/bar/baz" becomes
    "baz" and "foo/bar//" becomes "bar".
    (tostpathR,(R.((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyR,UstcountcC@s
t|ƒS(s/List or text. Returns the length as an integer.(tlen(ti((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyR/^stdomaincC@sY|jdƒ}|dkrdS||d}|jdƒ}|dkrU|| }n|S(sµAny text. Finds the first string that looks like an email
    address, and extracts just the domain component. Example: ``User
    <user@example.com>`` becomes ``example.com``.
    t@iÿÿÿÿtit>i(tfind(tauthortf((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyR2cs
temailcC@s
tj|ƒS(s•Any text. Extracts the first string that looks like an email
    address. Example: ``User <user@example.com>`` becomes
    ``user@example.com``.
    (RR9(R	((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyR9rstescapecC@stj|jddƒtƒS(s€Any text. Replaces the special XML/XHTML characters "&", "<"
    and ">" with XML entities, and filters out NUL characters.
    sR4(tcgiR:RR!(R	((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyR:zsR4c	@s™tdkr3tjdtjƒatjdƒan‡fd†}djg|ƒD]@\}}tjtj	dtj||ƒƒ|||ƒ|^qRƒS(s/fill many paragraphs with optional indentation.s(

|
\s*[-*]\s*)s  +c3@säd}x×trßtjˆ|ƒ}|s©tˆ|tjƒ}t|ƒ}x.d|kry||djƒry|d8}qLW|| jtjƒ||jtjƒfVPnˆ||jdƒ!|j	dƒfV|j
dƒ}q	WdS(Nii(R!tpara_retsearchtunicodeRR0tisspacetencodetstarttgrouptend(RARtuctexttw(R	(s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyt	findparas‹s	#$R4t N(
R<tNonetretcompileR
tspace_retjoinRtwraptsub(R	twidtht
initindentt
hangindentRFtparatrest((R	s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pytfill„s	tfill68cC@s
t|dƒS(s.Any text. Wraps the text to fit in 68 columns.iD(RT(R	((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyRUžstfill76cC@s
t|dƒS(s.Any text. Wraps the text to fit in 76 columns.iL(RT(R	((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyRV£st	firstlinecC@s7y|jtƒdjdƒSWntk
r2dSXdS(s)Any text. Returns the first line of text.is
R4N(t
splitlinesR!trstript
IndexError(R	((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyRW¨s
thexcC@s
tj|ƒS(sgAny text. Convert a binary Mercurial node identifier into
    its long hexadecimal representation.
    (RR[(R	((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyt	hexfilter°sthgdatecC@sd|S(skDate. Returns the date as a pair of numbers: "1157407993
    25200" (Unix timestamp, timezone offset).
    s%d %d((R	((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyR]·stisodatecC@stj|dƒS(sMDate. Returns the date in ISO 8601 format: "2009-08-18 13:00
    +0200".
    s%Y-%m-%d %H:%M %1%2(Rtdatestr(R	((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyR^¾st
isodateseccC@stj|dƒS(sˆDate. Returns the date in ISO 8601 format, including
    seconds: "2009-08-18 13:00:13 +0200". See also the rfc3339date
    filter.
    s%Y-%m-%d %H:%M:%S %1%2(RR_(R	((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyR`Åsc@sP|jƒ‰tˆƒ‰|ddk‰‡‡‡‡fd†}dj|ƒƒS(s;indent each non-empty line of text after first with prefix.iÿÿÿÿs
c3@sbx[tˆƒD]M}ˆ|}|r7|jƒr7ˆVn|V|ˆdksRˆr
dVq
q
WdS(Nis
(txrangetstrip(R1tl(tendswithnewlinetlinest	num_linestprefix(s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pytindenterÒs
R4(RXR0RL(R	RgRh((RdReRfRgs=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pytindentÍs
tjsoncC@s’|dks$|tks$|tkrAidd6dt6dt6|St|tƒs_t|tƒrit|ƒSt|tƒrdtj|dtƒSt	j
|dƒrg}xIt|jƒƒD]5\}}dt
|ƒt
|ƒf}|j|ƒqºWdd	j|ƒd
St	j
|dƒrYg}x!|D]}|jt
|ƒƒq'Wdd	j|ƒd
St	j
|dƒrxt
|ƒƒStd|jjƒ‚dS(Ntnulltfalsettrues"%s"tparanoidtkeyss%s: %st{s, t}t__iter__t[t]t__call__scannot encode type %s(RHR R!t
isinstanceR#tfloattstrRt
jsonescapeRtsafehasattrtsortedt	iteritemsRjtappendRLt	TypeErrort	__class__t__name__(tobjtouttktvRR1((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyRjÜs($


tlowercC@s
tj|ƒS(s)Any text. Converts the text to lowercase.(RR…(R	((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyR…ôstnonemptycC@s
|p	dS(s2Any text. Returns '(none)' if the string is empty.s(none)((Rx((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyR†ùst	obfuscatecC@s?t|tjdƒ}djg|D]}dt|ƒ^q"ƒS(sQAny text. Returns the input text rendered as a sequence of
    XML entities.
    RR4s&#%d;(R>RRLtord(R	R((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyR‡þstpermissionscC@s$d|krdSd|kr dSdS(NRct
lrwxrwxrwxtxs
-rwxr-xr-xs
-rw-r--r--((tflags((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyR‰s
tpersoncC@skd|kr|S|jdƒ}|dkrH|| jdƒjddƒS|jdƒ}|| jddƒS(	sàAny text. Returns the name before an email address,
    interpreting it as per RFC 5322.

    >>> person('foo@bar')
    'foo'
    >>> person('Foo Bar <foo@bar>')
    'Foo Bar'
    >>> person('"Foo Bar" <foo@bar>')
    'Foo Bar'
    >>> person('"Foo "buz" Bar" <foo@bar>')
    'Foo "buz" Bar'
    >>> # The following are invalid, but do exist in real-life
    ...
    >>> person('Foo "buz" Bar <foo@bar>')
    'Foo "buz" Bar'
    >>> person('"Foo Bar <foo@bar>')
    'Foo Bar'
    R3t<iÿÿÿÿs "s\"t"t.RG(R6RbR(R7R8((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyRst	revescapecC@stj|ddƒjddƒS(s×Any text. Escapes all "special" characters, except @.
    Forward slashes are escaped twice to prevent web servers from prematurely
    unescaping them. For example, "@foo bar/baz" becomes "@foo%20bar%252Fbaz".
    tsafes/@t/s%252F(turlreqtquoteR(R	((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyR‘*strfc3339datecC@stj|dƒS(spDate. Returns a date using the Internet date format
    specified in RFC 3339: "2009-08-18T13:00:13+02:00".
    s%Y-%m-%dT%H:%M:%S%1:%2(RR_(R	((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyR–2st
rfc822datecC@stj|dƒS(smDate. Returns a date using the same format used in email
    headers: "Tue, 18 Aug 2009 13:00:13 +0200".
    s%a, %d %b %Y %H:%M:%S %1%2(RR_(R	((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyR—9stshortcC@s|d S(shChangeset hash. Returns the short form of a changeset hash,
    i.e. a 12 hexadecimal digit string.
    i((R	((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyR˜@stshortbisectcC@stj|ƒpdS(sîAny text. Treats `text` as a bisection status, and
    returns a single-character representing the status (G: good, B: bad,
    S: skipped, U: untested, I: ignored). Returns single space if `text`
    is not a valid bisection status.
    RG(Rt
shortlabel(R	((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyR™GsR%cC@s
tj|ƒS(s'Date. Returns a date like "2006-09-18".(RR%(R	((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyR%PsRXcC@stjd|jƒdƒS(s*Any text. Split text into a list of lines.tlineRe(RtshowlistRX(R	((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyRXUststringescapecC@s
|jdƒS(Nt
string_escape(R@(R	((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyRZst	stringifycC@sntj|dƒrTt|tƒrTdjg|D]}|dk	r/t|ƒ^q/ƒS|dkrddSt|ƒS(scAny type. Turns the value into text by converting values into
    text and concatenating them.
    RrR4N(RRzRvRxRLRHRŸ(tthingR((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyRŸ^s
"2tstripdircC@s6tjj|ƒ}|dkr.tjj|ƒS|SdS(syTreat the text as path and strip a directory level, if
    possible. For example, "foo" and "foo/bar" becomes "foo".
    R4N(R-R.tdirnameR,(R	tdir((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyR¡ist	tabindentcC@s
t|dƒS(snAny text. Returns the text, with every non-empty line
    except the first starting with a tab character.
    s	(Ri(R	((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyR¤tstuppercC@s
tj|ƒS(s)Any text. Converts the text to uppercase.(RR¥(R	((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyR¥{st	urlescapecC@s
tj|ƒS(s`Any text. Escapes all "special" characters. For example,
    "foo bar" becomes "foo%20bar".
    (R”R•(R	((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyR¦€stusercC@s
tj|ƒS(sMAny text. Returns a short representation of a user name or email
    address.(Rt	shortuser(R	((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyt
userfilter‡st	emailusercC@s
tj|ƒS(s7Any text. Returns the user portion of an email address.(RRª(R	((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyRªstutf8cC@s
tj|ƒS(s>Any text. Converts from the local character encoding to UTF-8.(Rt	fromlocal(R	((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyR«’st	xmlescapecC@sU|jddƒjddƒjddƒjddƒjd	d
ƒ}tjdd|ƒS(
Nt&s&amp;RŽs&lt;R5s&gt;Rs&quot;t's&#39;s
[--]RG(RRIRN(R	((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyR­—scC@s6|r2x)|D]\}}|j||ƒ}q
Wn|S(s}:websub: Any text. Only applies to hgweb. Applies the regular
    expression replacements defined in the websub section.
    (RN(R	twebsubtabletregexptformat((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pytwebsub¡scC@s.x'|jjƒD]\}}|t|<qWdS(s5Load template filter from specified registrarobj
    N(t_tableR|tfilters(tuitextnametregistrarobjtnametfunc((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyt
loadfilterªsi€Qi€3ái€Qi'i€Qi€:	i€Q(RiR(Ri<R(RiR(At
__future__RR;R-RIRR4RRRRRRturlerrR”RµttemplatefilterRR$R RR,R/R2R9R:RHR<RKRTRURVRWR\R]R^R`RiRjR…R†R‡R‰RR‘R–R—R˜R™R%RXRRŸR¡R¤R¥R¦R©RªR«R­R³R»tvaluest
i18nfunctions(((s=/usr/lib/python2.7/dist-packages/mercurial/templatefilters.pyt<module>sz.					"