HEX
Server: Apache
System: Linux beluga.o2switch.net 4.18.0-553.123.2.lve.el8.x86_64 #1 SMP Thu May 7 23:17:13 UTC 2026 x86_64
User: sc3naki1272 (1113)
PHP: 8.3.33
Disabled: NONE
Upload Files
File: //opt/alt/python27/lib/python2.7/site-packages/logilab/common/compat.pyc
�
�d{Tc@sCdZdZddlZddlZddlZddlmZddlmZej	dkrqe
Zd�Znd	�Zd
�Zej	ddkr�d�Z
n	ejZ
ej	dkr�ddlmZeZeZeZn,dd
lmZmZmZddlmZddlmZed�e�Zed�e�ZdS(sWrappers around some builtins introduced in python 2.3, 2.4 and
2.5, making them available in for earlier versions of python.

See another compatibility snippets from other projects:

    :mod:`lib2to3.fixes`
    :mod:`coverage.backward`
    :mod:`unittest2.compatibility`
srestructuredtext eni����N(twarn(tbuiltinsiicCs&t|t�r|j|�St|�S(N(t
isinstancetunicodetencodetstr(tstringtencoding((sF/opt/alt/python27/lib/python2.7/site-packages/logilab/common/compat.pyt
str_encode*s
cCs
tj|�S(N(RR(R((sF/opt/alt/python27/lib/python2.7/site-packages/logilab/common/compat.pytstr_to_bytes/scCs
t|�S(N(R(RR((sF/opt/alt/python27/lib/python2.7/site-packages/logilab/common/compat.pyR3scCstj||�S(N(ttypest
MethodType(tcallabletinstancetklass((sF/opt/alt/python27/lib/python2.7/site-packages/logilab/common/compat.pytmethod_type8s(tStringIO(tFileIOtBytesIOR(treload(t
deprecatedsuse builtin "any"suse builtin "all"(ii(ii(t__doc__t
__docformat__tostsysR
twarningsRt	six.movesRtversion_infoRR	RRRt	cStringIORtfileRRRtiotimptlogilab.common.deprecationRtanytall(((sF/opt/alt/python27/lib/python2.7/site-packages/logilab/common/compat.pyt<module>s0