$80 GRAYBYTE WORDPRESS FILE MANAGER $84

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/python27/lib64/python2.7/email/

HOME
Current File : /opt/alt/python27/lib64/python2.7/email//utils.pyc
�
�V~gc
@sdZddddddddd	d
ddd
g
ZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
mZddl
mZ
ddl
mZddl
mZddl
mZddlmZddlmZmZdZdZdZdZdZejd�Zejd�Z d�Z!d�Z"d �Z#d!�Z$d"�Z%ejd#ej&ej'B�Z(de*e*d$�Z+dd%�Z,d&�Zd'�Zd(�Z-d)�Z.d*�Z/ddd+�Z0ejd,�Z1d-�Z2d.d/d0�Z3dS(1sMiscellaneous utilities.tcollapse_rfc2231_valuet
decode_paramstdecode_rfc2231tencode_rfc2231t
formataddrt
formatdatetgetaddressest
make_msgidt	mktime_tzt	parseaddrt	parsedatetparsedate_tztunquotei����N(tquote(tAddressList(R(R
(R(tdecodestring(t_bencodet_qencodes, tus
t's[][\\()<>@,:;".]s	[][\\()"]cCs|S(N((ts((s0/opt/alt/python27/lib64/python2.7/email/utils.pyt	_identity:scCs|s
|Stj|�S(s�Decodes a base64 string.

    This function is equivalent to base64.decodestring and it's retained only
    for backward compatibility. It used to remove the last \n of the decoded
    string, if it had any (see issue 7143).
    (tbase64R(R((s0/opt/alt/python27/lib64/python2.7/email/utils.pyt_bdecode>scCs.tjdt|�}tjdt|�}|S(s-Replace all line-ending characters with \r\n.s	(?<!\r)\ns\r(?!\n)(tretsubtCRLF(R((s0/opt/alt/python27/lib64/python2.7/email/utils.pytfix_eolsKscCsZ|\}}|rVd}tj|�r0d}ntjd|�}d||||fS|S(sThe inverse of parseaddr(), this takes a 2-tuple of the form
    (realname, email_address) and returns the string value suitable
    for an RFC 2822 From, To or Cc header.

    If the first element of pair is false, then the second element is
    returned unmodified.
    Rt"s\\\g<0>s%s%s%s <%s>(t
specialsretsearcht	escapesreR(tpairtnametaddresstquotes((s0/opt/alt/python27/lib64/python2.7/email/utils.pyRUs	cCs"tj|�}t|�}|jS(s7Return a list of (REALNAME, EMAIL) for each fieldvalue.(t
COMMASPACEtjoint_AddressListtaddresslist(tfieldvaluestallta((s0/opt/alt/python27/lib64/python2.7/email/utils.pyRhss_
  =\?                   # literal =?
  (?P<charset>[^?]*?)   # non-greedy up to the next ? is the charset
  \?                    # literal ?
  (?P<encoding>[qb])    # either a "q" or a "b", case insensitive
  \?                    # literal ?
  (?P<atom>.*?)         # non-greedy up to the next ?= is the atom
  \?=                   # literal ?=
  c	CsM|d$krtj�}n|r�tj|�}tjrO|drOtj}n	tj}tt|�d�\}}|dkr�d}nd}d|||df}n$tj|�}|r�d}nd	}d
ddd
ddddg|d|dddddddddddddg|d d |d|d!|d"|d#|fS(%s�Returns a date string as specified by RFC 2822, e.g.:

    Fri, 09 Nov 2001 01:08:47 -0000

    Optional timeval if given is a floating point time value as accepted by
    gmtime() and localtime(), otherwise the current time is used.

    Optional localtime is a flag that when True, interprets timeval, and
    returns a date relative to the local timezone instead of UTC, properly
    taking daylight savings time into account.

    Optional argument usegmt means that the timezone is written out as
    an ascii string, not numeric one (so "GMT" instead of "+0000"). This
    is needed for HTTP, and is only used when localtime==False.
    i����iit-t+s
%s%02d%02di<tGMTs-0000s"%s, %02d %s %04d %02d:%02d:%02d %stMontTuetWedtThutFritSattSuniitJantFebtMartAprtMaytJuntJultAugtSeptOcttNovtDeciiiiN(	tNonettimet	localtimetdaylighttaltzonettimezonetdivmodtabstgmtime(	ttimevalRCtusegmttnowtoffsetthourstminutestsigntzone((s0/opt/alt/python27/lib64/python2.7/email/utils.pyR|s.			 !cCsyttj�d�}tj�}tjd�}|dkrFd}n
d|}tj�}d|||||f}|S(s�Returns a string suitable for RFC 2822 compliant Message-ID, e.g:

    <142480216486.20800.16526388040877946887@nightshade.la.mastaler.com>

    Optional idstring if given is a string used to strengthen the
    uniqueness of the message id.
    idi@Rt.s<%d.%d.%d%s@%s>N(	tintRBtostgetpidtrandomtgetrandbitsRAtsockettgetfqdn(tidstringRJtpidtrandinttidhosttmsgid((s0/opt/alt/python27/lib64/python2.7/email/utils.pyR�s	
cCs|s
dSt|�S(N(RAt
_parsedate(tdata((s0/opt/alt/python27/lib64/python2.7/email/utils.pyR
�scCs|s
dSt|�S(N(RAt
_parsedate_tz(R`((s0/opt/alt/python27/lib64/python2.7/email/utils.pyR�scCs!t|�j}|sdS|dS(s�
    Parse addr into its constituent realname and email address parts.

    Return a tuple of realname and email address, unless the parse fails, in
    which case return a 2-tuple of ('', '').
    Ri(RR(R&R'(taddrtaddrs((s0/opt/alt/python27/lib64/python2.7/email/utils.pyR	�scCs�t|�dkr|jd�rS|jd�rS|dd!jdd�jdd�S|jd�r|jd�r|dd!Sn|S(	sRemove quotes from a string.iRi����s\\s\s\"t<t>(tlent
startswithtendswithtreplace(tstr((s0/opt/alt/python27/lib64/python2.7/email/utils.pyR�s#cCs5|jtd�}t|�dkr1dd|fS|S(s#Decode string according to RFC 2231iN(tsplittTICKRfRA(Rtparts((s0/opt/alt/python27/lib64/python2.7/email/utils.pyR�s
cCscddl}|j|dd�}|dkr=|dkr=|S|dkrRd}nd|||fS(s�Encode string according to RFC 2231.

    If neither charset nor language is given, then s is returned as-is.  If
    charset is given but not language, the string is encoded using the empty
    string for language.
    i����NtsafeRs%s'%s'%s(turllibR
RA(RtcharsettlanguageRo((s0/opt/alt/python27/lib64/python2.7/email/utils.pyR�s	s&^(?P<name>\w+)\*((?P<num>[0-9]+)\*?)?$c
Cs|}g}i}|jd�\}}|j||f�x�|r|jd�\}}|jd�rqt}nt}t|�}tj|�}|r�|jdd�\}}|dk	r�t
|�}n|j|g�j|||f�q>|j|dt|�f�q>W|r�x�|j
�D]�\}}g}t}	|j�xB|D]:\}}
}|rztj|
�}
t}	n|j|
�qMWttj|��}|	r�t|�\}}}|j|||d|ff�q$|j|d|f�q$Wn|S(sDecode parameters list according to RFC 2231.

    params is a sequence of 2-tuples containing (param name, string value).
    it*R!tnums"%s"N(tpoptappendRhtTruetFalseRtrfc2231_continuationtmatchtgroupRARSt
setdefaultR
titemstsortRotEMPTYSTRINGR%R(
tparamst
new_paramstrfc2231_paramsR!tvaluetencodedtmoRst
continuationstextendedRRpRq((s0/opt/alt/python27/lib64/python2.7/email/utils.pyR	sD		%!
	#Risus-asciicCsut|t�rgt|d�}|dp,d}yt|||�SWqqtk
rct|||�SXn
t|�SdS(Niisus-ascii(t
isinstancettupleRtunicodetLookupError(R�terrorstfallback_charsettrawvalRp((s0/opt/alt/python27/lib64/python2.7/email/utils.pyR>s
(4t__doc__t__all__RTRRBRRVRXRotwarningstemail._parseaddrR
RR&RR
R_RRatquopriRt_qdecodetemail.encodersRRR$R~tUEMPTYSTRINGRRltcompileRRRRRRRtVERBOSEt
IGNORECASEtecreRARwRRR	RRRRxRR(((s0/opt/alt/python27/lib64/python2.7/email/utils.pyt<module>sl			
	
		5						5


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
24 Jan 2025 9.37 AM
root / linksafe
0755
mime
--
24 Jan 2025 9.35 AM
root / linksafe
0755
__init__.py
2.789 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
__init__.pyc
2.881 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
__init__.pyo
2.881 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
_parseaddr.py
15.76 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
_parseaddr.pyc
13.91 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
_parseaddr.pyo
13.91 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
base64mime.py
5.658 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
base64mime.pyc
5.262 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
base64mime.pyo
5.262 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
charset.py
15.668 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
charset.pyc
13.439 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
charset.pyo
13.394 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
encoders.py
1.968 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
encoders.pyc
2.269 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
encoders.pyo
2.269 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
errors.py
1.59 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
errors.pyc
3.637 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
errors.pyo
3.637 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
feedparser.py
20.012 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
feedparser.pyc
11.174 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
feedparser.pyo
11.085 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
generator.py
13.87 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
generator.pyc
10.378 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
generator.pyo
10.378 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
header.py
21.722 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
header.pyc
13.545 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
header.pyo
13.477 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
iterators.py
2.15 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
iterators.pyc
2.374 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
iterators.pyo
2.374 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
message.py
30.003 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
message.pyc
28.588 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
message.pyo
28.588 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
parser.py
3.222 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
parser.pyc
3.84 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
parser.pyo
3.84 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
quoprimime.py
10.594 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
quoprimime.pyc
8.808 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
quoprimime.pyo
8.808 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
utils.py
9.791 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
utils.pyc
9.309 KB
8 Jan 2025 10.42 AM
root / linksafe
0644
utils.pyo
9.309 KB
8 Jan 2025 10.42 AM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF