관리-도구
편집 파일: __init__.cpython-311.pyc
� �܋f�U � � � d Z ddlZddlZddlZddlZddlZddlZej d dk Zej dd� dk Z ej dd� dk Z ej dd� dk Zej dd� dk Zej dd� d k Z ej dd� d k Zej d dk Zej dd� dk Zej dd� dk Z eed � � Zd� Zd� Zerd� Zd� Zd� ZefZefZefZeZe Z!nd� Zd� Zd� Ze"fZee#fZeej$ fZe%ZeZ!erd� Z&nd� Z&de&_ er dMd�Z'dMd�Z(dNd�Z)ndNd�Z'dNd�Z(dOd �Z)d!e'_ er d"� Z*d#� Z+d$� Z,d%� Z-n ddl.Z.e.j/ Z*e.j0 Z+e.j1 Z,e.j2 Z-dPd'�Z3d(� Z4d)� Z5d*� Z6d+� Z7d,� Z8d-� Z9d.� Z:d/� Z;d0� Z<d1� Z=er d2� Z>dQd3�Z?e@fd4�ZAn d5� Z> eBd6�C � � � � d7eA_ e?ZDd8� ZEerd9� ZFnd:� ZFd;� ZGd<� ZHeZIe ZJd=� ZKd>� ZLd?� ZMd@� ZNdA� ZOerddlPZP eQePdB� � ZRndQdC�ZRdD� ZSdMdE�ZT eUj7 dF� ZVdG� ZWn# eX$ r dH� ZVdI� ZWY nw xY werdJ� ZYndK� ZYg dL�ZZdS )Ra� A selection of cross-compatible functions for Python 2 and 3. This module exports useful functions for 2/3 compatible code: * bind_method: binds functions to classes * ``native_str_to_bytes`` and ``bytes_to_native_str`` * ``native_str``: always equal to the native platform string object (because this may be shadowed by imports from future.builtins) * lists: lrange(), lmap(), lzip(), lfilter() * iterable method compatibility: - iteritems, iterkeys, itervalues - viewitems, viewkeys, viewvalues These use the original method if available, otherwise they use items, keys, values. * types: * text_type: unicode in Python 2, str in Python 3 * string_types: basestring in Python 2, str in Python 3 * binary_type: str in Python 2, bytes in Python 3 * integer_types: (int, long) in Python 2, int in Python 3 * class_types: (type, types.ClassType) in Python 2, type in Python 3 * bchr(c): Take an integer and make a 1-character byte string * bord(c) Take the result of indexing on a byte string and make an integer * tobytes(s) Take a text string, a byte string, or a sequence of characters taken from a byte string, and make a byte string. * raise_from() * raise_with_traceback() This module also defines these decorators: * ``python_2_unicode_compatible`` * ``with_metaclass`` * ``implements_iterator`` Some of the functions in this module come from the following sources: * Jinja2 (BSD licensed: see https://github.com/mitsuhiko/jinja2/blob/master/LICENSE) * Pandas compatibility module pandas.compat * six.py by Benjamin Peterson * Django � N� � )r � )r � )r � )r � )r � )r � )r r )r r �pypy_translation_infoc �<