B , d Z ddlmZ ddlZddlmZ ddlmZ m
Z ddlZddl
ZddlmZ ddlmZmZmZ ddlmZmZmZmZ dd lmZmZm Z m!Z!m"Z" e r dd
l#m$Z$m%Z% ndd
l&m$Z$m%Z% d Zddlm'Z' e!rd-dZ(nddlm(Z( e"r ddl)m*Z* n*# e+$ r ddl,m*Z* Y nw xY w ddl-m*Z* n# e+$ r ddl.m*Z* Y nw xY wd.dZ/ G d de0 Z1 G d de2 Z3 ddlmZ ddl
m4Z4 n# e+$ r Y nw xY wd Z5 G d de2 Z6d Z7d-dZ( G d de% Z8dd lm9Z9 e9dfd!Z:d" Z;e3Ze(Z?eZ@e5ZAe/ZBe8ZCe:ZDe;ZEejF d#k r-dd$l#m3Z3m6Z6 ddlm(Z( dd%lGm;Z; dd&lm7Z7 n# e+$ r Y nw xY wdd'lm:Z: ejF d(k rddlmZ dd)l#m5Z5 ejF d*k rdd+lHm/Z/ dd,l#m8Z8 dS dS )/a
Miscellaneous function (re)definitions from the Py3.4+ standard library
for Python 2.6/2.7.
- math.ceil (for Python 2.7)
- collections.OrderedDict (for Python 2.6)
- collections.Counter (for Python 2.6)
- collections.ChainMap (for all versions prior to Python 3.3)
- itertools.count (for Python 2.6, with step parameter)
- subprocess.check_output (for Python 2.6)
- reprlib.recursive_repr (for Python 2.6+)
- functools.cmp_to_key (for Python 2.6)
)absolute_importN)ceil)
itemgettereq)proxy)repeatchainstarmap)getaddrinfoSOCK_STREAMerrorsocket) iteritems
itervaluesPY2PY26PY3)MappingMutableMappingc : t t | S )zZ
Return the ceiling of x as an int.
This is the smallest integral value >= x.
)intoldceil)xs g/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/future/backports/misc.pyr r # s
wqzz?? )islice c # K | V | |z
}
N startsteps r countr$ 3 s" KKKTME r )r$ ) get_ident...c fd}|S )zGDecorator to make a repr function return fillvalue for a recursive callc t fd}t d |_ t d |_ t d |_ t di |_ |S )Nc t | t f}|v rS | | } | n# | w xY w|S r )idr% adddiscard)selfkeyresult fillvaluerepr_running
user_functions r wrapperz.decorating_function..wrapperM s T((IKK'Cl"" S!!!
*&t,,$$S))))$$S))))Ms A A3
__module____doc____name____annotations__)setgetattrr4 r5 r6 r7 )r2 r3 r1 r0 s ` @r decorating_functionz+recursive_repr..decorating_functionJ s uu %]LAA!-;;"=*==")-9JB"O"Or r )r0 r: s ` r recursive_reprr; G s$ * r c e Zd ZdZdS )_Link)prevnextr. __weakref__N)r6 r4 __qualname__ __slots__r r r r= r= j s 4IIIr r= c , e Zd ZdZd Zej eefdZej fdZ d Z
d Zd Zdd Z
dd
Zd Zej xZZej Zej Zej Zej Z e ZefdZddZ e d Zd Zd Zedd Z d Z!d
S )OrderedDictz)Dictionary that remembers insertion orderc | st d | d }| dd } t | dk rt dt | z |j nS# t $ rF t |_ t
|j x|_ }|x|_ |_ i |_ Y nw xY w |j
| i | dS )zInitialize an ordered dictionary. The signature is the same as
regular dictionaries, but keyword arguments are not recommended because
their insertion order is arbitrary.
z?descriptor '__init__' of 'OrderedDict' object needs an argumentr r N$expected at most 1 arguments, got %d) TypeErrorlen_OrderedDict__rootAttributeErrorr= _OrderedDict__hardroot_proxyr> r? _OrderedDict__map_OrderedDict__update)argskwdsr- roots r __init__zOrderedDict.__init__| s 1 0 1 1
1AwABBxt99q==BSYYNOOO KKK #ggDO!'!8!88DK$$((DI DJJJ
t$t$$$$$s A A
B/.B/c || vrO | x| j |<