����JFIF���������
1#@!#!123s
D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
imh-python
/
lib
/
python2.7
/
Filename :
UserString.pyc
back
Copy
� ��Wc�����������@���s����d��Z��d�d�l�Z�d�d�l�Z�d�d�g�Z�d�e�j�f�d�������YZ�d�e�e�j�f�d�������YZ�e�d�k�r��d�d�l �Z �e �j �j�e�j�d���\�Z �Z�e �j �j�e���\�Z�Z�d �e�j�k�r��d�d �l�m�Z�d�e�_�n��e�d�e�j������n��d�S(���s����A user-defined wrapper around string objects Note: string objects have grown methods in Python 1.6 This module requires Python 1.6 or later. i����Nt ���UserStringt ���MutableStringc�����������B���so��e��Z�d�����Z�d����Z�d����Z�d����Z�d����Z�d����Z�d����Z�d����Z �d����Z �d ����Z�d ����Z�d����Z �d����Z�d ����Z�d����Z�d����Z�e�Z�d����Z�d����Z�d����Z�d�e�j�d���Z�d;�d;�d���Z�d;�d;�d���Z�d�e�j�d���Z�d�d���Z�d�e�j�d���Z�d�e�j�d���Z�d����Z �d����Z!�d����Z"�d����Z#�d ����Z$�d!����Z%�d"����Z&�d#����Z'�d$����Z(�d%����Z)�d&����Z*�d'����Z+�d;�d(���Z,�d)����Z-�d*�d+���Z.�d�e�j�d,���Z/�d�e�j�d-���Z0�d.����Z1�d/����Z2�d;�d0���Z3�d;�d*�d1���Z4�d;�d*�d2���Z5�d�d3���Z6�d�e�j�d4���Z7�d;�d5���Z8�d6����Z9�d7����Z:�d8����Z;�d9����Z<�d:����Z=�RS(<���c���������C���sM���t��|�t���r�|�|��_�n.�t��|�t���r:�|�j�|��_�n�t�|���|��_�d��S(���N(���t ���isinstancet ���basestringt���dataR����t���str(���t���selft���seq(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyt���__init__���s ����c���������C���s ���t��|��j���S(���N(���R���R���(���R���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyt���__str__���s����c���������C���s ���t��|��j���S(���N(���t���reprR���(���R���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyt���__repr__���s����c���������C���s ���t��|��j���S(���N(���t���intR���(���R���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyt���__int__���s����c���������C���s ���t��|��j���S(���N(���t���longR���(���R���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyt���__long__���s����c���������C���s ���t��|��j���S(���N(���t���floatR���(���R���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyt ���__float__���s����c���������C���s ���t��|��j���S(���N(���t���complexR���(���R���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyt���__complex__���s����c���������C���s ���t��|��j���S(���N(���t���hashR���(���R���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyt���__hash__���s����c���������C���s6���t��|�t���r"�t�|��j�|�j���St�|��j�|���Sd��S(���N(���R���R����t���cmpR���(���R���t���string(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyt���__cmp__���s����c���������C���s ���|�|��j��k�S(���N(���R���(���R���t���char(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyt���__contains__"���s����c���������C���s ���t��|��j���S(���N(���t���lenR���(���R���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyt���__len__%���s����c���������C���s���|��j��|��j�|���S(���N(���t ���__class__R���(���R���t���index(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyt���__getitem__&���s����c���������C���s5���t��|�d���}�t��|�d���}�|��j�|��j�|�|�!��S(���Ni����(���t���maxR���R���(���R���t���startt���end(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyt���__getslice__'���s�����c���������C���sg���t��|�t���r&�|��j�|��j�|�j���St��|�t���rI�|��j�|��j�|���S|��j�|��j�t�|�����Sd��S(���N(���R���R����R���R���R���R���(���R���t���other(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyt���__add__+���s ����c���������C���sA���t��|�t���r#�|��j�|�|��j���S|��j�t�|���|��j���Sd��S(���N(���R���R���R���R���R���(���R���R$���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyt���__radd__2���s����c���������C���s���|��j��|��j�|���S(���N(���R���R���(���R���t���n(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyt���__mul__7���s����c���������C���s���|��j��|��j�|���S(���N(���R���R���(���R���t���args(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyt���__mod__:���s����c���������C���s���|��j��|��j�j������S(���N(���R���R���t ���capitalize(���R���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyR+���>���s����c���������G���s���|��j��|��j�j�|�|�����S(���N(���R���R���t���center(���R���t���widthR)���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyR,���?���s����i����c���������C���s���|��j��j�|�|�|���S(���N(���R���t���count(���R���t���subR!���R"���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyR.���A���s����c���������C���s^���|�rD�|�r(�|��j��|��j�j�|�|�����S|��j��|��j�j�|�����Sn�|��j��|��j�j������Sd��S(���N(���R���R���t���decode(���R���t���encodingt���errors(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyR0���C���s ����c���������C���s^���|�rD�|�r(�|��j��|��j�j�|�|�����S|��j��|��j�j�|�����Sn�|��j��|��j�j������Sd��S(���N(���R���R���t���encode(���R���R1���R2���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyR3���K���s ����c���������C���s���|��j��j�|�|�|���S(���N(���R���t���endswith(���R���t���suffixR!���R"���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyR4���S���s����i���c���������C���s���|��j��|��j�j�|�����S(���N(���R���R���t ���expandtabs(���R���t���tabsize(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyR6���U���s����c���������C���s���|��j��j�|�|�|���S(���N(���R���t���find(���R���R/���R!���R"���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyR8���W���s����c���������C���s���|��j��j�|�|�|���S(���N(���R���R���(���R���R/���R!���R"���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyR���Y���s����c���������C���s ���|��j��j����S(���N(���R���t���isalpha(���R���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyR9���[���s����c���������C���s ���|��j��j����S(���N(���R���t���isalnum(���R���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyR:���\���s����c���������C���s ���|��j��j����S(���N(���R���t ���isdecimal(���R���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyR;���]���s����c���������C���s ���|��j��j����S(���N(���R���t���isdigit(���R���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyR<���^���s����c���������C���s ���|��j��j����S(���N(���R���t���islower(���R���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyR=���_���s����c���������C���s ���|��j��j����S(���N(���R���t ���isnumeric(���R���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyR>���`���s����c���������C���s ���|��j��j����S(���N(���R���t���isspace(���R���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyR?���a���s����c���������C���s ���|��j��j����S(���N(���R���t���istitle(���R���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyR@���b���s����c���������C���s ���|��j��j����S(���N(���R���t���isupper(���R���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyRA���c���s����c���������C���s���|��j��j�|���S(���N(���R���t���join(���R���R���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyRB���d���s����c���������G���s���|��j��|��j�j�|�|�����S(���N(���R���R���t���ljust(���R���R-���R)���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyRC���e���s����c���������C���s���|��j��|��j�j������S(���N(���R���R���t���lower(���R���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyRD���g���s����c���������C���s���|��j��|��j�j�|�����S(���N(���R���R���t���lstrip(���R���t���chars(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyRE���h���s����c���������C���s���|��j��j�|���S(���N(���R���t ���partition(���R���t���sep(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyRG���i���s����i����c���������C���s���|��j��|��j�j�|�|�|�����S(���N(���R���R���t���replace(���R���t���oldt���newt���maxsplit(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyRI���k���s����c���������C���s���|��j��j�|�|�|���S(���N(���R���t���rfind(���R���R/���R!���R"���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyRM���m���s����c���������C���s���|��j��j�|�|�|���S(���N(���R���t���rindex(���R���R/���R!���R"���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyRN���o���s����c���������G���s���|��j��|��j�j�|�|�����S(���N(���R���R���t���rjust(���R���R-���R)���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyRO���q���s����c���������C���s���|��j��j�|���S(���N(���R���t ���rpartition(���R���RH���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyRP���s���s����c���������C���s���|��j��|��j�j�|�����S(���N(���R���R���t���rstrip(���R���RF���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyRQ���u���s����c���������C���s���|��j��j�|�|���S(���N(���R���t���split(���R���RH���RL���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyRR���v���s����c���������C���s���|��j��j�|�|���S(���N(���R���t���rsplit(���R���RH���RL���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyRS���x���s����c���������C���s���|��j��j�|���S(���N(���R���t ���splitlines(���R���t���keepends(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyRT���z���s����c���������C���s���|��j��j�|�|�|���S(���N(���R���t ���startswith(���R���t���prefixR!���R"���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyRV���{���s����c���������C���s���|��j��|��j�j�|�����S(���N(���R���R���t���strip(���R���RF���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyRX���}���s����c���������C���s���|��j��|��j�j������S(���N(���R���R���t���swapcase(���R���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyRY���~���s����c���������C���s���|��j��|��j�j������S(���N(���R���R���t���title(���R���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyRZ������s����c���������G���s���|��j��|��j�j�|������S(���N(���R���R���t ���translate(���R���R)���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyR[�������s����c���������C���s���|��j��|��j�j������S(���N(���R���R���t���upper(���R���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyR\�������s����c���������C���s���|��j��|��j�j�|�����S(���N(���R���R���t���zfill(���R���R-���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyR]�������s����N(>���t���__name__t ���__module__R���R ���R���R ���R���R���R���R���R���R���R���R���R#���R%���R&���R(���t���__rmul__R*���R+���R,���t���syst���maxintR.���t���NoneR0���R3���R4���R6���R8���R���R9���R:���R;���R<���R=���R>���R?���R@���RA���RB���RC���RD���RE���RG���RI���RM���RN���RO���RP���RQ���RR���RS���RT���RV���RX���RY���RZ���R[���R\���R]���(����(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyR���� ���sr��� c�����������B���sh���e��Z�d��Z�d�d���Z�d�Z�d����Z�d����Z�d����Z�d����Z �d����Z �d����Z�d ����Z�d ����Z �RS(���s���mutable string objects Python strings are immutable objects. This has the advantage, that strings may be used as dictionary keys. If this property isn't needed and you insist on changing string values in place instead, you may cheat and use MutableString. But the purpose of this class is an educational one: to prevent people from inventing their own mutable string class derived from UserString and than forget thereby to remove (override) the __hash__ method inherited from UserString. This would lead to errors that would be very hard to track down. A faster and better solution is to rewrite your program using lists.t����c���������C���s-���d�d�l��m�}�|�d�d�d��|�|��_�d��S(���Ni����(���t���warnpy3ksA���the class UserString.MutableString has been removed in Python 3.0t ���stackleveli���(���t���warningsRe���R���(���R���R���Re���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyR�������s���� c���������C���s\��t��|�t���r��t��|�t���r*�|�j�}�n�t��|�t���sH�t�|���}�n��|�j�t�|��j�����\�}�}�}�|�d�k�r��|�d�|�d�}�}�|�d��d��d���}�n�|�d�k�r��t�d���n��t �|�|���}�|��j�|� |�|��j�|�|��_�no�|�d�k��r|�t�|��j���7}�n��|�d�k��s,|�t�|��j���k�r5t ���n��|��j�|� |�|��j�|�d�|��_�d��S(���Ni����i���s"���invalid step in slicing assignmenti����(���R���t���sliceR����R���R���R���t���indicesR���t ���TypeErrort���mint ���IndexError(���R���R���R/���R!���t���stopt���step(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyt���__setitem__����s$����!"!� c���������C���s��t��|�t���r��|�j�t�|��j�����\�}�}�}�|�d�k�rT�|�d�|�d�}�}�n�|�d�k�rl�t�d���n��t�|�|���}�|��j�|� |��j�|�|��_�nk�|�d�k��r��|�t�|��j���7}�n��|�d�k��s��|�t�|��j���k�r��t���n��|��j�|� |��j�|�d�|��_�d��S(���Ni����i���s ���invalid step in slicing deletioni����(���R���Rh���Ri���R���R���Rj���Rk���Rl���(���R���R���R!���Rm���Rn���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyt���__delitem__����s����!!� c���������C���s����t��|�d���}�t��|�d���}�t�|�t���rR�|��j�|� |�j�|��j�|�|��_�nV�t�|�t���r��|��j�|� |�|��j�|�|��_�n%�|��j�|� t�|���|��j�|�|��_�d��S(���Ni����(���R ���R���R����R���R���R���(���R���R!���R"���R/���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyt���__setslice__����s�����%"c���������C���s=���t��|�d���}�t��|�d���}�|��j�|� |��j�|�|��_�d��S(���Ni����(���R ���R���(���R���R!���R"���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyt���__delslice__����s�����c���������C���s ���t��|��j���S(���N(���R����R���(���R���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyt ���immutable����s����c���������C���s^���t��|�t���r$�|��j�|�j�7_�n6�t��|�t���rE�|��j�|�7_�n�|��j�t�|���7_�|��S(���N(���R���R����R���R���R���(���R���R$���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyt���__iadd__����s����c���������C���s���|��j��|�9_��|��S(���N(���R���(���R���R'���(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyt���__imul__����s����c���������C���s���|�|��|�|�+d��S(���N(����(���R���R���t���value(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyt���insert����s����N(���R^���R_���t���__doc__R���Rc���R���Ro���Rp���Rq���Rr���Rs���Rt���Ru���Rw���(����(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyR�������s��� t���__main__i����s���-q(���t���test_supports ���test.test_(���Rx���Ra���t���collectionst���__all__t���SequenceR����t���MutableSequenceR���R^���t���ost���pathRR���t���argvt ���called_in_dirt ���called_ast���splitextt���pyt���testRz���t���verboset ���__import__RD���(����(����(����sc���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/UserString.pyt���<module>���s���xW