
    c	                     0   d Z dZddlZddlZddlmZ ddlZd Zdeee	f   de	de	fd	Z
ej                  d   d
k(  rd Znej                  Zej                  dk  rddlmZ eZeZeZnddlmZmZ ddlmZ ddlmZ   ed      e      Z  ed      e      Zy)a  Wrappers 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`
zrestructuredtext en    N)Unionc                 ,    t         j                  |       S N)strencode)strings    7/usr/lib/python3/dist-packages/logilab/common/compat.pystr_to_bytesr
   (   s    ::f    r   encodingreturnc                     t        |       S r   )r   )r   r   s     r	   
str_encoder   .   s    v;r      c                 .    t        j                  | |      S r   )types
MethodType)callableinstanceklasss      r	   method_typer   5   s    (33r   )r   r   )StringIO)r   FileIO)reload)callable_deprecatedzuse builtin "any"zuse builtin "all")__doc____docformat__sysr   typingr   builtinsr
   intr   r   version_infor   r   	cStringIOr   filer   BytesIOr   io	importliblogilab.common.deprecationr   anyall r   r	   <module>r,      s   & & 
   uS#X # # 
 A!4 ""K f"FGF#  : /-.s3.-.s3r   