����JFIFXX�����    $.' ",#(7),01444'9=82<.342  2!!22222222222222222222222222222222222222222222222222����"��4�� ���,�PG"Z_�4�˷����kjز�Z�,F+��_z�,�© �����zh6�٨�ic�fu���#ډb���_�N�?��wQ���5-�~�I���8����TK<5o�Iv-�����k�_U_�����~b�M��d����Ӝ�U�Hh��?]��E�w��Q���k�{��_}qFW7HTՑ��Y��F�?_�'ϔ��_�Ջt��=||I ��6�έ"�����D���/[�k�9���Y�8ds|\���Ҿp6�Ҵ���]��.����6�z<�v��@]�i%��$j��~�g��J>��no����pM[me�i$[����s�o�ᘨ�˸ nɜG-�ĨU�ycP�3.DB�li�;��hj���x7Z^�N�h������N3u{�:j�x�힞��#M&��jL P@_���� P��&��o8������9�����@Sz6�t7#O�ߋ �s}Yf�T���lmr����Z)'N��k�۞p����w\�Tȯ?�8`�O��i{wﭹW�[�r�� ��Q4F�׊���3m&L�=��h3����z~��#�\�l :�F,j@�� ʱ�wQT����8�"kJO���6�֚l����}���R�>ډK���]��y����&����p�}b��;N�1�m�r$�|��7�>e�@B�TM*-iH��g�D�)� E�m�|�ؘbҗ�a��Ҿ����t4���o���G��*oCN�rP���Q��@z,|?W[0�����:�n,jWiE��W��$~/�hp\��?��{(�0���+�Y8rΟ�+����>S-S����VN;�}�s?.����� w�9��˟<���Mq4�Wv'��{)0�1mB��V����W[�����8�/<� �%���wT^�5���b��)iM� pg�N�&ݝ��VO~�q���u���9� ����!��J27����$O-���! �:�%H��� ـ����y�ΠM=t{!S�� oK8������t<����è:a������[�����ա�H���~��w��Qz`�po�^ ����Q��n� �,uu�C�$ ^���,������8�#��:�6��e�|~���!�3�3.�\0��q��o�4`.|� ����y�Q�`~;�d�ׯ,��O�Zw�������`73�v�܋�<���Ȏ�� ـ4k��5�K�a�u�=9Yd��$>x�A�&�� j0� ���vF��� Y�|�y��� ~�6�@c��1vOp�Ig����4��l�OD���L����� R���c���j�_�uX6��3?nk��Wy�f;^*B� ��@�~a�`��Eu������+���6�L��.ü>��}y���}_�O�6�͐�:�YrG�X��kG�����l^w���~㒶sy��Iu�!� W ��X��N�7BV��O��!X�2����wvG�R�f�T#�����t�/?���%8�^�W�aT��G�cL�M���I��(J����1~�8�?aT ���]����AS�E��(��*E}� 2��#I/�׍qz��^t�̔���b�Yz4x���t�){ OH��+(E��A&�N�������XT��o��"�XC��'���)}�J�z�p� ��~5�}�^����+�6����w��c��Q�|Lp�d�H��}�(�.|����k��c4^�"�����Z?ȕ ��a<�L�!039C� �Eu�C�F�Ew�ç ;�n?�*o���B�8�bʝ���'#Rqf���M}7����]����s2tcS{�\icTx;�\��7K���P���ʇ Z O-��~��c>"��?�������P��E��O�8��@�8��G��Q�g�a�Վ���󁶠�䧘��_%#r�>�1�z�a��eb��qcPѵ��n���#L��� =��׀t� L�7�`��V���A{�C:�g���e@�w1 Xp3�c3�ġ����p��M"'-�@n4���fG��B3�DJ�8[Jo�ߐ���gK)ƛ��$���� ���8�3�����+���� �����6�ʻ���� ���S�kI�*KZlT _`���?��K����QK�d����B`�s}�>���`��*�>��,*@J�d�oF*����弝��O}�k��s��]��y�ߘ��c1G�V���<=�7��7����6�q�PT��tXԀ�!9*4�4Tހ3XΛex�46���Y��D ����� �BdemDa����\�_l,��G�/���֌7���Y�](�xTt^%�GE�����4�}bT���ڹ�����;Y)���B�Q��u��>J/J �⮶.�XԄ��j�ݳ�+E��d ��r�5�_D�1 ��o�� �B�x�΢�#���<��W�����8���R6�@g�M�.��� dr�D��>(otU��@x=��~v���2� ӣ�d�oBd��3�eO�6�㣷�����ݜ6��6Y��Qz`��S��{���\P�~z m5{J/L��1������<�e�ͅPu�b�]�ϔ���'������f�b� Zpw��c`"��i���BD@:)ִ�:�]��hv�E�w���T�l��P���"Ju�}��وV J��G6��. J/�Qgl߭�e�����@�z�Zev2u�)]կ�����7x���s�M�-<ɯ�c��r�v�����@��$�ޮ}lk���a���'����>x��O\�ZFu>�����ck#��&:��`�$�ai�>2Δ����l���oF[h��lE�ܺ�Πk:)���`�� $[6�����9�����kOw�\|���8}������ބ:��񶐕��I�A1/�=�2[�,�!��.}gN#�u����b��� ~��݊��}34q����d�E��Lc��$��"�[q�U�硬g^��%B �z���r�pJ�ru%v\h1Y�ne`ǥ:g���pQM~�^�Xi� ��`S�:V29.�P���V�?B�k�� AEvw%�_�9C�Q����wKekPؠ�\�;Io d�{ ߞo�c1eP����\� `����E=���@K<�Y���eڼ�J���w����{av�F�'�M�@/J��+9p���|]�����Iw &`��8���&M�hg��[�{��Xj��%��Ӓ�$��(����ʹN���<>�I���RY���K2�NPlL�ɀ)��&e����B+ь����( � �JTx���_?EZ� }@ 6�U���뙢ط�z��dWI�n` D����噥�[��uV��"�G&Ú����2g�}&m��?ċ�"����Om#��������� ��{�ON��"S�X��Ne��ysQ���@Fn��Vg���dX�~nj�]J�<�K]:��FW��b�������62�=��5f����JKw��bf�X�55��~J �%^����:�-�QIE��P��v�nZum� z � ~ə ���� ���ة����;�f��\v���g�8�1��f24;�V���ǔ�)����9���1\��c��v�/'Ƞ�w�������$�4�R-��t���� e�6�/�ġ �̕Ecy�J���u�B���<�W�ַ~�w[B1L۲�-JS΂�{���΃������A��20�c#��@ 0!1@AP"#2Q`$3V�%45a6�FRUq��� ����^7ׅ,$n�������+��F�`��2X'��0vM��p�L=������5��8������u�p~���.�`r�����\���O��,ư�0oS ��_�M�����l���4�kv\JSd���x���SW�<��Ae�IX����������$I���w�:S���y���›R��9�Q[���,�5�;�@]�%���u�@ *ro�lbI �� ��+���%m:�͇ZV�����u�̉����θau<�fc�.����{�4Ա� �Q����*�Sm��8\ujqs]{kN���)qO�y�_*dJ�b�7���yQqI&9�ԌK!�M}�R�;������S�T���1���i[U�ɵz�]��U)V�S6���3$K{�ߊ<�(� E]Զ[ǼENg�����'�\?#)Dkf��J���o��v���'�%ƞ�&K�u�!��b�35LX�Ϸ��63$K�a�;�9>,R��W��3�3� d�JeTYE.Mϧ��-�o�j3+y��y^�c�������VO�9NV\nd�1 ��!͕_)a�v;����թ�M�lWR1��)El��P;��yوÏ�u 3�k�5Pr6<�⒲l�!˞*��u־�n�!�l:����UNW ��%��Chx8vL'��X�@��*��)���̮��ˍ��� ���D-M�+J�U�kvK����+�x8��cY������?�Ԡ��~3mo��|�u@[XeY�C�\Kp�x8�oC�C�&����N�~3-H���� ��MX�s�u<`���~"WL��$8ξ��3���a�)|:@�m�\���^�`�@ҷ)�5p+��6���p�%i)P M���ngc�����#0Aruz���RL+xSS?���ʮ}()#�t��mˇ!��0}}y����<�e� �-ή�Ԩ��X������ MF���ԙ~l L.3���}�V뽺�v�����멬��Nl�)�2����^�Iq��a��M��qG��T�����c3#������3U�Ǎ���}��לS�|qa��ڃ�+���-��2�f����/��bz��ڐ�� �ݼ[2�ç����k�X�2�* �Z�d���J�G����M*9W���s{��w���T��x��y,�in�O�v��]���n����P�$�JB@=4�OTI�n��e�22a\����q�d���%�$��(���:���: /*�K[PR�fr\nڙdN���F�n�$�4�[�� U�zƶ����� �mʋ���,�ao�u 3�z� �x��Kn����\[��VFmbE;�_U��&V�Gg�]L�۪&#n%�$ɯ�dG���D�TI=�%+AB�Ru#��b4�1�»x�cs�YzڙJG��f��Il��d�eF'T� iA��T���uC�$����Y��H?����[!G`}���ͪ� �纤Hv\������j�Ex�K���!���OiƸ�Yj�+u-<���'q����uN�*�r\��+�]���<�wOZ.fp�ێ��,-*)V?j-kÊ#�`�r��dV����(�ݽBk�����G�ƛk�QmUڗe��Z���f}|����8�8��a���i��3'J�����~G_�^���d�8w������ R�`(�~�.��u���l�s+g�bv���W���lGc}��u���afE~1�Ue������Z�0�8�=e�� f@/�jqEKQQ�J��oN��J���W5~M>$6�Lt�;$ʳ{���^��6�{����v6���ķܰg�V�cnn �~z�x�«�,2�u�?cE+Ș�H؎�%�Za�)���X>uW�Tz�Nyo����s���FQƤ��$��*�&�LLXL)�1�" L��eO��ɟ�9=���:t��Z���c��Ž���Y?�ӭV�wv�~,Y��r�ۗ�|�y��GaF�����C�����.�+� ���v1���fήJ�����]�S��T��B��n5sW}y�$��~z�'�c ��8 ��� ,! �p��VN�S��N�N�q��y8z˱�A��4��*��'������2n<�s���^ǧ˭P�Jޮɏ�U�G�L�J�*#��<�V��t7�8����TĜ>��i}K%,���)[��z�21z ?�N�i�n1?T�I�R#��m-�����������������1����lA�`��fT5+��ܐ�c�q՝��ʐ��,���3�f2U�եmab��#ŠdQ�y>\��)�SLY����w#��.���ʑ�f��� ,"+�w�~�N�'�c�O�3F�������N<���)j��&��,-� �љ���֊�_�zS���TǦ����w�>��?�������n��U仆�V���e�����0���$�C�d���rP �m�׈e�Xm�Vu� �L��.�bֹ��� �[Դaզ���*��\y�8�Է:�Ez\�0�Kq�C b��̘��cө���Q��=0Y��s�N��S.���3.���O�o:���#���v7�[#߫ ��5�܎�L���Er4���9n��COWlG�^��0k�%<���ZB���aB_���������'=��{i�v�l�$�uC���mƎҝ{�c㱼�y]���W�i ��ߧc��m�H� m�"�"�����;Y�ߝ�Z�Ǔ�����:S#��|}�y�,/k�Ld� TA�(�AI$+I3��;Y*���Z��}|��ӧO��d�v��..#:n��f>�>���ȶI�TX��� 8��y����"d�R�|�)0���=���n4��6ⲑ�+��r<�O�܂~zh�z����7ܓ�HH�Ga롏���nCo�>������a ���~]���R���̲c?�6(�q�;5%� |�uj�~z8R=X��I�V=�|{v�Gj\gc��q����z�؋%M�ߍ����1y��#��@f^���^�>N�����#x#۹��6�Y~�?�dfPO��{��P�4��V��u1E1J �*|���%���JN��`eWu�zk M6���q t[�� ��g�G���v��WIG��u_ft����5�j�"�Y�:T��ɐ���*�;� e5���4����q$C��2d�}���� _S�L#m�Yp��O�.�C�;��c����Hi#֩%+) �Ӎ��ƲV���SYź��g |���tj��3�8���r|���V��1#;.SQ�A[���S������#���`n�+���$��$I �P\[�@�s��(�ED�z���P��])8�G#��0B��[ى��X�II�q<��9�~[Z멜�Z�⊔IWU&A>�P~�#��dp<�?����7���c��'~���5 ��+$���lx@�M�dm��n<=e�dyX��?{�|Aef ,|n3�<~z�ƃ�uۧ�����P��Y,�ӥQ�*g�#먙R�\���;T��i,��[9Qi歉����c>]9�� ��"�c��P�� �Md?٥��If�ت�u��k��/����F��9�c*9��Ǎ:�ØF���z�n*�@|I�ށ9����N3{'��[�'ͬ�Ҳ4��#}��!�V� Fu��,�,mTIk���v C�7v���B�6k�T9��1�*l� '~��ƞF��lU��'�M ����][ΩũJ_�{�i�I�n��$���L�� j��O�dx�����kza۪��#�E��Cl����x˘�o�����V���ɞ�ljr��)�/,�߬h�L��#��^��L�ф�,íMƁe�̩�NB�L�����iL����q�}��(��q��6IçJ$�W�E$��:������=#����(�K�B����zђ <��K(�N�۫K�w��^O{!����)�H���>x�������lx�?>Պ�+�>�W���,Ly!_�D���Ō�l���Q�!�[ �S����J��1��Ɛ�Y}��b,+�Lo�x�ɓ)����=�y�oh�@�꥟/��I��ѭ=��P�y9��� �ۍYӘ�e+�p�Jnϱ?V\SO%�(�t� ���=?MR�[Ș�����d�/ ��n�l��B�7j� ��!�;ӥ�/�[-���A�>�dN�sLj ��,ɪv��=1c�.SQ�O3�U���ƀ�ܽ�E����������̻��9G�ϷD�7(�}��Ävӌ\�y�_0[w ���<΍>����a_��[0+�L��F.�޺��f�>oN�T����q;���y\��bՃ��y�jH�<|q-eɏ�_?_9+P���Hp$�����[ux�K w�Mw��N�ی'$Y2�=��q���KB��P��~������Yul:�[<����F1�2�O���5=d����]Y�sw:���Ϯ���E��j,_Q��X��z`H1,#II ��d�wr��P˂@�ZJV����y$�\y�{}��^~���[:N����ߌ�U�������O��d�����ؾe��${p>G��3c���Ė�lʌ�� ת��[��`ϱ�-W����dg�I��ig2��� ��}s ��ؤ(%#sS@���~���3�X�nRG�~\jc3�v��ӍL��M[JB�T��s3}��j�Nʖ��W����;7��ç?=X�F=-�=����q�ߚ���#���='�c��7���ڑW�I(O+=:uxq�������������e2�zi+�kuG�R��������0�&e�n���iT^J����~\jy���p'dtG��s����O��3����9* �b#Ɋ�� p������[Bws�T�>d4�ۧs���nv�n���U���_�~,�v����ƜJ1��s�� �QIz��)�(lv8M���U=�;����56��G���s#�K���MP�=��LvyGd��}�VwWBF�'�à �?MH�U�g2�� ����!�p�7Q��j��ڴ����=��j�u��� Jn�A s���uM������e��Ɔ�Ҕ�!)'��8Ϣ�ٔ��ޝ(��Vp���צ֖d=�IC�J�Ǡ{q������kԭ�߸���i��@K����u�|�p=..�*+����x�����z[Aqġ#s2a�Ɗ���RR�)*HRsi�~�a &f��M��P����-K�L@��Z��Xy�'x�{}��Zm+���:�)�) IJ�-i�u���� ���ܒH��'�L(7�y�GӜq���� j��� 6ߌg1�g�o���,kر���tY�?W,���p���e���f�OQS��!K�۟cҒA�|ս�j�>��=⬒��˧L[�� �߿2JaB~R��u�:��Q�] �0H~���]�7��Ƽ�I���(}��cq '�ήET���q�?f�ab���ӥvr� �)o��-Q��_'����ᴎo��K������;��V���o��%���~OK ����*��b�f:���-ťIR��`B�5!RB@���ï�� �u �̯e\�_U�_������� g�ES��3�������QT��a����x����U<~�c?�*�#]�MW,[8O�a�x��]�1bC|踤�P��lw5V%�)�{t�<��d��5���0i�XSU��m:��Z�┵�i�"��1�^B�-��P�hJ��&)O��*�D��c�W��vM��)����}���P��ܗ-q����\mmζZ-l@�}��a��E�6��F�@��&Sg@���ݚ�M����� ȹ 4����#p�\H����dYDo�H���"��\��..R�B�H�z_�/5˘����6��KhJR��P�mƶi�m���3�,#c�co��q�a)*Pt����R�m�k�7x�D�E�\Y�閣_X�<���~�)���c[[�BP����6�Yq���S��0����%_����;��Àv�~�| VS؇ ��'O0��F0��\���U�-�d@�����7�SJ*z��3n��y��P����O���������m�~�P�3|Y��ʉr#�C�<�G~�.,! ���bqx���h~0=��!ǫ�jy����l�O,�[B��~��|9��ٱ����Xly�#�i�B��g%�S��������tˋ���e���ې��\[d�t)��.+u�|1 ������#�~Oj����hS�%��i.�~X���I�H�m��0n���c�1uE�q��cF�RF�o���7� �O�ꮧ� ���ۛ{��ʛi5�rw?׌#Qn�TW��~?y$��m\�\o����%W� ?=>S�N@�� �Ʈ���R����N�)�r"C�:��:����� �����#��qb��Y�. �6[��2K����2u�Ǧ�HYR��Q�MV��� �G�$��Q+.>�����nNH��q�^��� ����q��mM��V��D�+�-�#*�U�̒ ���p욳��u:�������IB���m���PV@O���r[b= �� ��1U�E��_Nm�yKbN�O���U�}�the�`�|6֮P>�\2�P�V���I�D�i�P�O;�9�r�mAHG�W�S]��J*�_�G��+kP�2����Ka�Z���H�'K�x�W�MZ%�O�YD�Rc+o��?�q��Ghm��d�S�oh�\�D�|:W������UA�Qc yT�q������~^�H��/��#p�CZ���T�I�1�ӏT����4��"�ČZ�����}��`w�#�*,ʹ�� ��0�i��課�Om�*�da��^gJ݅{���l�e9uF#T�ֲ��̲�ٞC"�q���ߍ ոޑ�o#�XZTp����@ o�8��(jd��xw�]�,f���`~�|,s��^����f�1���t��|��m�򸄭/ctr��5s��7�9Q�4�H1꠲BB@l9@���C�����+�wp�xu�£Yc�9��?`@#�o�mH�s2��)�=��2�.�l����jg�9$�Y�S�%*L������R�Y������7Z���,*=�䷘$�������arm�o�ϰ���UW.|�r�uf����IGw�t����Zwo��~5 ��YյhO+=8fF�)�W�7�L9lM�̘·Y���֘YLf�큹�pRF���99.A �"wz��=E\Z���'a� 2��Ǚ�#;�'}�G���*��l��^"q��+2FQ� hj��kŦ��${���ޮ-�T�٭cf�|�3#~�RJ����t��$b�(R��(����r���dx� >U b�&9,>���%E\� Ά�e�$��'�q't��*�א���ެ�b��-|d���SB�O�O��$�R+�H�)�܎�K��1m`;�J�2�Y~9��O�g8=vqD`K[�F)k�[���1m޼c��n���]s�k�z$@��)!I �x՝"v��9=�ZA=`Ɠi �:�E��)`7��vI��}d�YI�_ �o�:ob���o ���3Q��&D&�2=�� �Ά��;>�h����y.*ⅥS������Ӭ�+q&����j|UƧ����}���J0��WW< ۋS�)jQR�j���Ư��rN)�Gű�4Ѷ(�S)Ǣ�8��i��W52���No˓� ۍ%�5brOn�L�;�n��\G����=�^U�dI���8$�&���h��'���+�(������cȁ߫k�l��S^���cƗjԌE�ꭔ��gF���Ȓ��@���}O���*;e�v�WV���YJ\�]X'5��ղ�k�F��b 6R�o՜m��i N�i����>J����?��lPm�U��}>_Z&�KK��q�r��I�D�Չ~�q�3fL�:S�e>���E���-G���{L�6p�e,8��������QI��h��a�Xa��U�A'���ʂ���s�+טIjP�-��y�8ۈZ?J$��W�P� ��R�s�]��|�l(�ԓ��sƊi��o(��S0��Y� 8�T97.�����WiL��c�~�dxc�E|�2!�X�K�Ƙਫ਼�$((�6�~|d9u+�qd�^3�89��Y�6L�.I�����?���iI�q���9�)O/뚅����O���X��X�V��ZF[�یgQ�L��K1���RҖr@v�#��X�l��F���Нy�S�8�7�kF!A��sM���^rkp�jP�DyS$N���q��nxҍ!U�f�!eh�i�2�m���`�Y�I�9r�6� �TF���C}/�y�^���Η���5d�'��9A-��J��>{�_l+�`��A���[�'��յ�ϛ#w:݅�%��X�}�&�PSt�Q�"�-��\縵�/����$Ɨh�Xb�*�y��BS����;W�ջ_mc�����vt?2}1�;qS�d�d~u:2k5�2�R�~�z+|HE!)�Ǟl��7`��0�<�,�2*���Hl-��x�^����'_TV�gZA�'j� ^�2Ϊ��N7t�����?w�� �x1��f��Iz�C-Ȗ��K�^q�;���-W�DvT�7��8�Z�������� hK�(P:��Q- �8�n�Z���܃e貾�<�1�YT<�,�����"�6{/ �?�͟��|1�:�#g��W�>$����d��J��d�B��=��jf[��%rE^��il:��B���x���Sּ�1հ��,�=��*�7 fcG��#q� �eh?��2�7�����,�!7x��6�n�LC�4x��},Geǝ�tC.��vS �F�43��zz\��;QYC,6����~;RYS/6���|2���5���v��T��i����������mlv��������&� �nRh^ejR�LG�f���? �ۉҬܦƩ��|��Ȱ����>3����!v��i�ʯ�>�v��オ�X3e���_1z�Kȗ\<������!�8���V��]��?b�k41�Re��T�q��mz��TiOʦ�Z��Xq���L������q"+���2ۨ��8}�&N7XU7Ap�d�X��~�׿��&4e�o�F��� �H����O���č�c�� 懴�6���͉��+)��v;j��ݷ�� �UV�� i��� j���Y9GdÒJ1��詞�����V?h��l����l�cGs�ځ�������y�Ac�����\V3�? �� ܙg�>qH�S,�E�W�[�㺨�uch�⍸�O�}���a��>�q�6�n6����N6�q������N ! 1AQaq�0@����"2BRb�#Pr���3C`��Scst���$4D���%Td�� ?���N����a��3��m���C���w��������xA�m�q�m���m������$����4n淿t'��C"w��zU=D�\R+w�p+Y�T�&�պ@��ƃ��3ޯ?�Aﶂ��aŘ���@-�����Q�=���9D��ռ�ѻ@��M�V��P��܅�G5�f�Y<�u=,EC)�<�Fy'�"�&�չ�X~f��l�KԆV��?�� �W�N����=(� �;���{�r����ٌ�Y���h{�١������jW����P���Tc�����X�K�r��}���w�R��%��?���E��m�� �Y�q|����\lEE4���r���}�lsI�Y������f�$�=�d�yO����p�����yBj8jU�o�/�S��?�U��*������ˍ�0������u�q�m [�?f����a�� )Q�>����6#������� ?����0UQ����,IX���(6ڵ[�DI�MNލ�c&���υ�j\��X�R|,4��� j������T�hA�e��^���d���b<����n�� �즇�=!���3�^�`j�h�ȓr��jẕ�c�,ٞX����-����a�ﶔ���#�$��]w�O��Ӫ�1y%��L�Y<�wg#�ǝ�̗`�x�xa�t�w��»1���o7o5��>�m뭛C���Uƃߜ}�C���y1Xνm�F8�jI���]����H���ۺиE@I�i;r�8ӭ����V�F�Շ| ��&?�3|x�B�MuS�Ge�=Ӕ�#BE5G�����Y!z��_e��q�р/W>|-�Ci߇�t�1ޯќd�R3�u��g�=0 5��[?�#͏��q�cf���H��{ ?u�=?�?ǯ���}Z��z���hmΔ�BFTW�����<�q�(v� ��!��z���iW]*�J�V�z��gX֧A�q�&��/w���u�gYӘa���; �i=����g:��?2�dž6�ى�k�4�>�Pxs����}������G�9��3 ���)gG�R<>r h�$��'nc�h�P��Bj��J�ҧH� -��N1���N��?��~��}-q!=��_2hc�M��l�vY%UE�@|�v����M2�.Y[|y�"Eï��K�ZF,�ɯ?,q�?v�M 80jx�"�;�9vk�����+ ֧�� �ȺU��?�%�vcV��mA�6��Qg^M����A}�3�nl� QRN�l8�kkn�'�����(��M�7m9و�q���%ޟ���*h$Zk"��$�9��: �?U8�Sl��,,|ɒ��xH(ѷ����Gn�/Q�4�P��G�%��Ա8�N��!� �&�7�;���eKM7�4��9R/%����l�c>�x;������>��C�:�����t��h?aKX�bhe�ᜋ^�$�Iհ �hr7%F$�E��Fd���t��5���+�(M6�t����Ü�UU|zW�=a�Ts�Tg������dqP�Q����b'�m���1{|Y����X�N��b �P~��F^F:����k6�"�j!�� �I�r�`��1&�-$�Bevk:y���#yw��I0��x��=D�4��tU���P�ZH��ڠ底taP��6����b>�xa����Q�#� WeF��ŮNj�p�J* mQ�N����*I�-*�ȩ�F�g�3 �5��V�ʊ�ɮ�a��5F���O@{���NX��?����H�]3��1�Ri_u��������ѕ�� ����0��� F��~��:60�p�͈�S��qX#a�5>���`�o&+�<2�D����: �������ڝ�$�nP���*)�N�|y�Ej�F�5ټ�e���ihy�Z �>���k�bH�a�v��h�-#���!�Po=@k̆IEN��@��}Ll?j�O������߭�ʞ���Q|A07x���wt!xf���I2?Z��<ץ�T���cU�j��]��陎Ltl �}5�ϓ��$�,��O�mˊ�;�@O��jE��j(�ا,��LX���LO���Ц�90�O �.����a��nA���7������j4 ��W��_ٓ���zW�jcB������y՗+EM�)d���N�g6�y1_x��p�$Lv:��9�"z��p���ʙ$��^��JԼ*�ϭ����o���=x�Lj�6�J��u82�A�H�3$�ٕ@�=Vv�]�'�qEz�;I˼��)��=��ɯ���x �/�W(V���p�����$ �m�������u�����񶤑Oqˎ�T����r��㠚x�sr�GC��byp�G��1ߠ�w e�8�$⿄����/�M{*}��W�]˷.�CK\�ުx���/$�WPw���r� |i���&�}�{�X� �>��$-��l���?-z���g����lΆ���(F���h�vS*���b���߲ڡn,|)mrH[���a�3�ר�[1��3o_�U�3�TC�$��(�=�)0�kgP���� ��u�^=��4 �WYCҸ:��vQ�ר�X�à��tk�m,�t*��^�,�}D*� �"(�I��9R����>`�`��[~Q]�#af��i6l��8���6�:,s�s�N6�j"�A4���IuQ��6E,�GnH��zS�HO�uk�5$�I�4��ؤ�Q9�@��C����wp�BGv[]�u�Ov���0I4���\��y�����Q�Ѹ��~>Z��8�T��a��q�ޣ;z��a���/��S��I:�ܫ_�|������>=Z����8:�S��U�I�J��"IY���8%b8���H��:�QO�6�;7�I�S��J��ҌAά3��>c���E+&jf$eC+�z�;��V����� �r���ʺ������my�e���aQ�f&��6�ND��.:��NT�vm�<- u���ǝ\MvZY�N�NT��-A�>jr!S��n�O 1�3�Ns�%�3D@���`������ܟ 1�^c<���� �a�ɽ�̲�Xë#�w�|y�cW�=�9I*H8�p�^(4���՗�k��arOcW�tO�\�ƍR��8����'�K���I�Q�����?5�>[�}��yU�ײ -h��=��% q�ThG�2�)���"ו3]�!kB��*p�FDl�A���,�eEi�H�f�Ps�����5�H:�Փ~�H�0Dت�D�I����h�F3�������c��2���E��9�H��5�zԑ�ʚ�i�X�=:m�xg�hd(�v����׊�9iS��O��d@0ڽ���:�p�5�h-��t�&���X�q�ӕ,��ie�|���7A�2���O%P��E��htj��Y1��w�Ѓ!����  ���� ࢽ��My�7�\�a�@�ţ�J �4�Ȼ�F�@o�̒?4�wx��)��]�P��~�����u�����5�����7X ��9��^ܩ�U;Iꭆ 5 �������eK2�7(�{|��Y׎ �V��\"���Z�1� Z�����}��(�Ǝ"�1S���_�vE30>���p;� ΝD��%x�W�?W?v����o�^V�i�d��r[��/&>�~`�9Wh��y�;���R��� ;;ɮT��?����r$�g1�K����A��C��c��K��l:�'��3 c�ﳯ*"t8�~l��)���m��+U,z��`(�>yJ�?����h>��]��v��ЍG*�{`��;y]��I�T� ;c��NU�fo¾h���/$���|NS���1�S�"�H��V���T���4��uhǜ�]�v;���5�͠x��'C\�SBpl���h}�N����� A�Bx���%��ޭ�l��/����T��w�ʽ]D�=����K���ž�r㻠l4�S�O?=�k �M:� ��c�C�a�#ha���)�ѐxc�s���gP�iG��{+���x���Q���I= �� z��ԫ+ �8"�k�ñ�j=|����c ��y��CF��/��*9ж�h{ �?4�o� ��k�m�Q�N�x��;�Y��4膚�a�w?�6�>e]�����Q�r�:����g�,i"�����ԩA�*M�<�G��b�if��l^M��5� �Ҩ�{����6J��ZJ�����P�*�����Y���ݛu�_4�9�I8�7���������,^ToR���m4�H��?�N�S�ѕw��/S��甍�@�9H�S�T��t�ƻ���ʒU��*{Xs�@����f�����֒Li�K{H�w^���������Ϥm�tq���s� ���ք��f:��o~s��g�r��ט� �S�ѱC�e]�x���a��) ���(b-$(�j>�7q�B?ӕ�F��hV25r[7 Y� }L�R��}����*sg+��x�r�2�U=�*'WS��ZDW]�WǞ�<��叓���{�$�9Ou4��y�90-�1�'*D`�c�^o?(�9��u���ݐ��'PI&� f�Jݮ�������:wS����jfP1F:X �H�9dԯ���˝[�_54 �}*;@�ܨ�� ð�yn�T���?�ןd�#���4rG�ͨ��H�1�|-#���Mr�S3��G�3�����)�.᧏3v�z֑��r����$G"�`j �1t��x0<Ɔ�Wh6�y�6��,œ�Ga��gA����y��b��)��h�D��ß�_�m��ü �gG;��e�v��ݝ�nQ� ��C����-�*��o���y�a��M��I�>�<���]obD��"�:���G�A��-\%LT�8���c�)��+y76���o�Q�#*{�(F�⽕�y����=���rW�\p���۩�c���A���^e6��K������ʐ�cVf5$�'->���ՉN"���F�"�UQ@�f��Gb~��#�&�M=��8�ט�JNu9��D��[̤�s�o�~������ G��9T�tW^g5y$b��Y'��س�Ǵ�=��U-2 #�MC�t(�i� �lj�@Q 5�̣i�*�O����s�x�K�f��}\��M{E�V�{�υ��Ƈ�����);�H����I��fe�Lȣr�2��>��W�I�Ȃ6������i��k�� �5�YOxȺ����>��Y�f5'��|��H+��98pj�n�.O�y�������jY��~��i�w'������l�;�s�2��Y��:'lg�ꥴ)o#'Sa�a�K��Z� �m��}�`169�n���"���x��I ��*+� }F<��cГ���F�P�������ֹ*�PqX�x۩��,� ��N�� �4<-����%����:��7����W���u�`����� $�?�I��&����o��o��`v�>��P��"��l���4��5'�Z�gE���8���?��[�X�7(��.Q�-��*���ތL@̲����v��.5���[��=�t\+�CNܛ��,g�SQnH����}*F�G16���&:�t��4ُ"A��̣��$�b �|����#rs��a�����T�� ]�<�j��BS�('$�ɻ� �wP;�/�n��?�ݜ��x�F��yUn�~mL*-�������Xf�wd^�a�}��f�,=t�׵i�.2/wpN�Ep8�OР���•��R�FJ� 55TZ��T �ɭ�<��]��/�0�r�@�f��V��V����Nz�G��^���7hZi����k��3�,kN�e|�vg�1{9]_i��X5y7� 8e]�U����'�-2,���e"����]ot�I��Y_��n�(JҼ��1�O ]bXc���Nu�No��pS���Q_���_�?i�~�x h5d'�(qw52] ��'ޤ�q��o1�R!���`ywy�A4u���h<קy���\[~�4�\ X�Wt/� 6�����n�F�a8��f���z �3$�t(���q��q�x��^�XWeN'p<-v�!�{�(>ӽDP7��ո0�y)�e$ٕv�Ih'Q�EA�m*�H��RI��=:��� ���4牢) �%_iN�ݧ�l]� �Nt���G��H�L��� ɱ�g<���1V�,�J~�ٹ�"K��Q�� 9�HS�9�?@��k����r�;we݁�]I�!{ �@�G�[�"��`���J:�n]�{�cA�E����V��ʆ���#��U9�6����j�#Y�m\��q�e4h�B�7��C�������d<�?J����1g:ٳ���=Y���D�p�ц� ׈ǔ��1�]26؜oS�'��9�V�FVu�P�h�9�xc�oq�X��p�o�5��Ա5$�9W�V(�[Ak�aY錎qf;�'�[�|���b�6�Ck��)��#a#a˙��8���=äh�4��2��C��4tm^ �n'c���]GQ$[Wҿ��i���vN�{Fu ��1�gx��1┷���N�m��{j-,��x�� Ūm�ЧS�[�s���Gna���䑴�� x�p 8<������97�Q���ϴ�v�aϚG��Rt�Һ׈�f^\r��WH�JU�7Z���y)�vg=����n��4�_)y��D'y�6�]�c�5̪�\� �PF�k����&�c;��cq�$~T�7j ���nç]�<�g ":�to�t}�159�<�/�8������m�b�K#g'I'.W�����6��I/��>v��\�MN��g���m�A�yQL�4u�Lj�j9��#44�t��l^�}L����n��R��!��t��±]��r��h6ٍ>�yҏ�N��fU�� ���� Fm@�8}�/u��jb9������he:A�y�ծw��GpΧh�5����l}�3p468��)U��d��c����;Us/�֔�YX�1�O2��uq�s��`hwg�r~�{ R��mhN��؎*q 42�*th��>�#���E����#��Hv�O����q�}�����6�e��\�,Wk�#���X��b>��p}�դ��3���T5��†��6��[��@�P�y*n��|'f�֧>�lư΂�̺����SU�'*�q�p�_S�����M�� '��c�6�����m�� ySʨ;M��r���Ƌ�m�Kxo,���Gm�P��A�G�:��i��w�9�}M(�^�V��$ǒ�ѽ�9���|���� �a����J�SQ�a���r�B;����}���ٻ֢�2�%U���c�#�g���N�a�ݕ�'�v�[�OY'��3L�3�;,p�]@�S��{ls��X�'���c�jw�k'a�.��}�}&�� �dP�*�bK=ɍ!����;3n�gΊU�ߴmt�'*{,=SzfD� A��ko~�G�aoq�_mi}#�m�������P�Xhύ����mxǍ�΂���巿zf��Q���c���|kc�����?���W��Y�$���_Lv����l߶��c���`?����l�j�ݲˏ!V��6����U�Ђ(A���4y)H���p�Z_�x��>���e��R��$�/�`^'3qˏ�-&Q�=?��CFVR �D�fV�9��{�8g�������n�h�(P"��6�[�D���< E�����~0<@�`�G�6����Hг�cc�� �c�K.5��D��d�B���`?�XQ��2��ٿyqo&+�1^� DW�0�ꊩ���G�#��Q�nL3��c���������/��x ��1�1[y�x�პCW��C�c�UĨ80�m�e�4.{�m��u���I=��f�����0QRls9���f���������9���~f�����Ǩ��a�"@�8���ȁ�Q����#c�ic������G��$���G���r/$W�(��W���V�"��m�7�[m�A�m����bo��D� j����۳� l���^�k�h׽����� ��#� iXn�v��eT�k�a�^Y�4�BN��ĕ��0 !01@Q"2AaPq3BR������?���@4�Q�����T3,���㺠�W�[=JK�Ϟ���2�r^7��vc�:�9 �E�ߴ�w�S#d���Ix��u��:��Hp��9E!�� V 2;73|F��9Y���*ʬ�F��D����u&���y؟��^EA��A��(ɩ���^��GV:ݜDy�`��Jr29ܾ�㝉��[���E;Fzx��YG��U�e�Y�C���� ����v-tx����I�sם�Ę�q��Eb�+P\ :>�i�C'�;�����k|z�رn�y]�#ǿb��Q��������w�����(�r|ӹs��[�D��2v-%��@;�8<a���[\o[ϧw��I!��*0�krs)�[�J9^��ʜ��p1)� "��/_>��o��<1����A�E�y^�C��`�x1'ܣn�p��s`l���fQ��):�l����b>�Me�jH^?�kl3(�z:���1ŠK&?Q�~�{�ٺ�h�y���/�[��V�|6��}�KbX����mn[-��7�5q�94�������dm���c^���h� X��5��<�eޘ>G���-�}�دB�ޟ� ��|�rt�M��V+�]�c?�-#ڛ��^ǂ}���Lkr���O��u�>�-D�ry� D?:ޞ�U��ǜ�7�V��?瓮�"�#���r��չģVR;�n���/_� ؉v�ݶe5d�b9��/O��009�G���5n�W����JpA�*�r9�>�1��.[t���s�F���nQ� V 77R�]�ɫ8����_0<՜�IF�u(v��4��F�k�3��E)��N:��yڮe��P�`�1}�$WS��J�SQ�N�j�ٺ��޵�#l���ј(�5=��5�lǏmoW�v-�1����v,W�mn��߀$x�<����v�j(����c]��@#��1������Ǔ���o'��u+����;G�#�޸��v-lη��/(`i⣍Pm^���ԯ̾9Z��F��������n��1��� ��]�[��)�'������:�֪�W��FC����� �B9،!?���]��V��A�Վ�M��b�w��G F>_DȬ0¤�#�QR�[V��kz���m�w�"��9ZG�7'[��=�Q����j8R?�zf�\a�=��O�U����*oB�A�|G���2�54 �p��.w7� �� ��&������ξxGHp� B%��$g�����t�Џ򤵍z���HN�u�Я�-�'4��0��;_��3 !01"@AQa2Pq#3BR������?��ʩca��en��^��8���<�u#��m*08r��y�N"�<�Ѳ0��@\�p��� �����Kv�D��J8�Fҽ� �f�Y��-m�ybX�NP����}�!*8t(�OqѢ��Q�wW�K��ZD��Δ^e��!� ��B�K��p~�����e*l}z#9ң�k���q#�Ft�o��S�R����-�w�!�S���Ӥß|M�l޶V��!eˈ�8Y���c�ЮM2��tk���� ������J�fS����Ö*i/2�����n]�k�\���|4yX�8��U�P.���Ы[���l��@"�t�<������5�lF���vU�����W��W��;�b�cД^6[#7@vU�xgZv��F�6��Q,K�v��� �+Ъ��n��Ǣ��Ft���8��0��c�@�!�Zq s�v�t�;#](B��-�nῃ~���3g������5�J�%���O������n�kB�ĺ�.r��+���#�N$?�q�/�s�6��p��a����a��J/��M�8��6�ܰ"�*������ɗud"\w���aT(����[��F��U՛����RT�b���n�*��6���O��SJ�.�ij<�v�MT��R\c��5l�sZB>F��<7�;EA��{��E���Ö��1U/�#��d1�a�n.1ě����0�ʾR�h��|�R��Ao�3�m3 ��%�� ���28Q� ��y��φ���H�To�7�lW>����#i`�q���c����a��� �m,B�-j����݋�'mR1Ήt�>��V��p���s�0IbI�C.���1R�ea�����]H�6����������4B>��o��](��$B���m�����a�!=��?�B� K�Ǿ+�Ծ"�n���K��*��+��[T#�{E�J�S����Q�����s�5�:�U�\wĐ�f�3����܆&�)����I���Ԇw��E T�lrTf6Q|R�h:��[K�� �z��c֧�G�C��%\��_�a�84��HcO�bi��ؖV��7H �)*ģK~Xhչ0��4?�0��� �E<���}3���#���u�?�� ��|g�S�6ꊤ�|�I#Hڛ� �ա��w�X��9��7���Ŀ%�SL��y6č��|�F�a 8���b��$�sק�h���b9RAu7�˨p�Č�_\*w��묦��F ����4D~�f����|(�"m���NK��i�S�>�$d7SlA��/�²����SL��|6N�}���S�˯���g��]6��; �#�.��<���q'Q�1|KQ$�����񛩶"�$r�b:���N8�w@��8$�� �AjfG|~�9F ���Y��ʺ��Bwؒ������M:I岎�G��`s�YV5����6��A �b:�W���G�q%l�����F��H���7�������Fsv7��k�� 403WebShell
403Webshell
Server IP : 213.165.242.4  /  Your IP : 216.73.216.78
Web Server : Apache
System : Linux amsngx344.inmotionhosting.com 4.18.0-553.40.1.lve.el8.x86_64 #1 SMP Wed Feb 12 18:54:57 UTC 2025 x86_64
User : aquafi9 ( 1305)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /opt/imh-python/lib/python2.7/lib2to3/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyo
�
��Wc@s7dZddlZddlZddlmZddlmZddlmZm	Z	m
Z
mZddlm
Z
de
jfd��YZd	efd
��YZdefd��YZd
efd��YZdefd��YZdefd��YZdefd��YZdefd��YZdefd��YZdefd��YZdefd��YZdefd��YZdefd ��YZd!efd"��YZd#efd$��YZd%efd&��YZd'efd(��YZd)efd*��YZ d+efd,��YZ!d-efd.��YZ"d/efd0��YZ#d1fd2��YZ$d3ee$fd4��YZ%d5ee$fd6��YZ&d7ee$fd8��YZ'd9efd:��YZ(d;efd<��YZ)d=efd>��YZ*d?efd@��YZ+dAefdB��YZ,dCefdD��YZ-dEefdF��YZ.dGefdH��YZ/dIefdJ��YZ0dKefdL��YZ1dMefdN��YZ2dOefdP��YZ3dQefdR��YZ4dSefdT��YZ5dUefdV��YZ6dWefdX��YZ7dYefdZ��YZ8d[efd\��YZ9d]efd^��YZ:d_efd`��YZ;daefdb��YZ<dcefdd��YZ=deefdf��YZ>dgefdh��YZ?diefdj��YZ@dkefdl��YZAdmefdn��YZBdoefdp��YZCdqefdr��YZDdsefdt��YZEdS(us" Test suite for the fixer modules i����N(tchain(t
itemgetter(tpygramtpytreetrefactort
fixer_util(tsupportt
FixerTestCasecBsYeZdddd�Zd�Zed�Zed�Zd�Zed�Z	d�Z
RS(	tlib2to3cCs{|dkr|jg}ntj|||�|_g|_d|_x/t|jj|jj	�D]}|j|_
qaWdS(Nu<string>(tNonetfixerRtget_refactorerRt	fixer_logtfilenameRt	pre_ordert
post_ordertlog(tselftfix_listt	fixer_pkgtoptionsR
((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pytsetUps		cCsPtj|�}tj|�}|jj||j�}|j|t|��|S(N(RtreformatRtrefactor_stringR
tassertEqualtunicode(Rtbeforetafterttree((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt_checks
cCsB|j||�}|j|j�|s>|j|jg�ndS(N(Rt
assertTruetwas_changedRR(RRRtignore_warningsR((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pytcheck$scCsK|j||�}|j|dj|j��|sG|j|j�ndS(Nt(RtassertIntjoinRRR(RRRtmessaget	unchangedR((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pytwarns*scCs|j|||dt�dS(NR&(R'tTrue(RRR%((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pytwarns_unchanged0scCs0|j||�|s,|j|jg�ndS(N(RRR(RRR ((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR&3scGs�|jg}|j|�tjd|�}|j�\}}d|j}|rm|djjj|�rmdS|r�|djjj|�r�|r�dS|jddj	g||D]}|jj^q��|f�dS(NRtfix_i����s5Fixer run order (%s) is incorrect; %s should be last.s, (
R
textendRRt
get_fixerst	__class__t
__module__tendswithtfailR$(Rtnamestfixestrtpretposttntx((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pytassert_runs_after8s

&	N(t__name__R.R	RRtFalseR!R'R)R&R8(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRs		tTest_necBs)eZdZd�Zd�Zd�ZRS(tnecCs d}d}|j||�dS(Nsif x <> y:
            passsif x != y:
            pass(R!(Rtbta((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt
test_basicJscCs d}d}|j||�dS(Nsif x<>y:
            passsif x!=y:
            pass(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_no_spacesRscCs d}d}|j||�dS(Nsif x<>y<>z:
            passsif x!=y!=z:
            pass(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_chainedZs(R9R.R
R?R@RA(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR;Gs		tTest_has_keycBsqeZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
RS(thas_keycCs d}d}|j||�dS(Ns$x = d.has_key("x") or d.has_key("y")sx = "x" in d or "y" in d(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_1escCs d}d}|j||�dS(Nsx = a.b.c.d.has_key("x") ** 3sx = ("x" in a.b.c.d) ** 3(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_2jscCs d}d}|j||�dS(Ns!x = a.b.has_key(1 + 2).__repr__()sx = (1 + 2 in a.b).__repr__()(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_3oscCs d}d}|j||�dS(Ns,x = a.b.has_key(1 + 2).__repr__() ** -3 ** 4s(x = (1 + 2 in a.b).__repr__() ** -3 ** 4(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_4tscCs d}d}|j||�dS(Nsx = a.has_key(f or g)sx = (f or g) in a(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_5yscCs d}d}|j||�dS(Nsx = a + b.has_key(c)sx = a + (c in b)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_6~scCs d}d}|j||�dS(Nsx = a.has_key(lambda: 12)sx = (lambda: 12) in a(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_7�scCs d}d}|j||�dS(Nsx = a.has_key(a for a in b)sx = (a for a in b) in a(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_8�scCs d}d}|j||�dS(Nsif not a.has_key(b): passsif b not in a: pass(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_9�scCs d}d}|j||�dS(Ns$if not a.has_key(b).__repr__(): passs if not (b in a).__repr__(): pass(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_10�scCs d}d}|j||�dS(Nsif not a.has_key(b) ** 2: passsif not (b in a) ** 2: pass(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_11�s(R9R.R
RDRERFRGRHRIRJRKRLRMRN(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRBbs										t
Test_applycBs�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(tapplycCs d}d}|j||�dS(Nsx = apply(f, g + h)s
x = f(*g + h)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRD�scCs d}d}|j||�dS(Nsy = apply(f, g, h)sy = f(*g, **h)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRE�scCs d}d}|j||�dS(Ns z = apply(fs[0], g or h, h or g)sz = fs[0](*g or h, **h or g)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRF�scCs d}d}|j||�dS(Nsapply(f, (x, y) + t)sf(*(x, y) + t)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRG�scCs d}d}|j||�dS(Nsapply(f, args,)sf(*args)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRH�scCs d}d}|j||�dS(Nsapply(f, args, kwds,)sf(*args, **kwds)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRI�scCs d}d}|j||�dS(Nsx = apply(f+g, args)sx = (f+g)(*args)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_complex_1�scCs d}d}|j||�dS(Nsx = apply(f*g, args)sx = (f*g)(*args)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_complex_2�scCs d}d}|j||�dS(Nsx = apply(f**g, args)sx = (f**g)(*args)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_complex_3�scCs d}d}|j||�dS(Nsx = apply(f.g, args)sx = f.g(*args)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_dotted_name�scCs d}d}|j||�dS(Nsx = apply(f[x], args)sx = f[x](*args)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_subscript�scCs d}d}|j||�dS(Nsx = apply(f(), args)sx = f()(*args)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt	test_call�scCs d}d}|j||�dS(Ns"x = apply(a.b.c.d.e.f, args, kwds)sx = a.b.c.d.e.f(*args, **kwds)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_extreme�scCs d}d}|j||�dS(Ns1apply(   # foo
          f, # bar
          args)sf(*args)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_weird_comments�scCsd}|j|�dS(Nsapply()(R&(Rts((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged_1�scCsd}|j|�dS(Nsapply(f)(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged_2�scCsd}|j|�dS(Ns	apply(f,)(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged_3�scCsd}|j|�dS(Nsapply(f, args, kwds, extras)(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged_4�scCsd}|j|�dS(Nsapply(f, *args, **kwds)(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged_5�scCsd}|j|�dS(Nsapply(f, *args)(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged_6scCsd}|j|�dS(Ns#apply(func=f, args=args, kwds=kwds)(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged_7scCsd}|j|�dS(Nsapply(f, args=args, kwds=kwds)(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged_8scCsd}|j|�dS(Nsapply(f, args, kwds=kwds)(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged_9scCs d}d}|j||�dS(Nsapply(  f,  args,   kwds)sf(*args, **kwds)(R!(RR>R=((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_space_1scCs d}d}|j||�dS(Nsapply(  f  ,args,kwds   )sf(*args, **kwds)(R!(RR>R=((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_space_2s(R9R.R
RDRERFRGRHRIRQRRRSRTRURVRWRXRZR[R\R]R^R_R`RaRbRcRd(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRO�s4																									tTest_interncBs)eZdZd�Zd�Zd�ZRS(tinterncCsXd}d}|j||�d}d}|j||�d}d}|j||�dS(Nsx =   intern(  a  )s"import sys
x =   sys.intern(  a  )s%y = intern("b" # test
              )s4import sys
y = sys.intern("b" # test
              )sz = intern(a+b+c.d,   )s&import sys
z = sys.intern(a+b+c.d,   )(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_prefix_preservation scCsXd}d}|j||�d}d}|j||�d}d}|j||�dS(Ns
x = intern(a)simport sys
x = sys.intern(a)sz = intern(a+b+c.d,)s#import sys
z = sys.intern(a+b+c.d,)s"intern("y%s" % 5).replace("y", "")s1import sys
sys.intern("y%s" % 5).replace("y", "")(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest/scCscd}|j|�d}|j|�d}|j|�d}|j|�d}|j|�dS(Nsintern(a=1)sintern(f, g)s
intern(*h)sintern(**i)sintern()(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged>s



(R9R.R
RgRhRi(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRes		tTest_reducecBs2eZdZd�Zd�Zd�Zd�ZRS(treducecCs d}d}|j||�dS(Nsreduce(a, b, c)s,from functools import reduce
reduce(a, b, c)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_simple_callQscCs d}d}|j||�dS(Nsdef x(arg): reduce(sum, [])s8from functools import reduce
def x(arg): reduce(sum, [])(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt
test_bug_7253VscCs d}d}|j||�dS(Nsreduce(lambda x, y: x + y, seq)s<from functools import reduce
reduce(lambda x, y: x + y, seq)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_call_with_lambda\scCscd}|j|�d}|j|�d}|j|�d}|j|�d}|j|�dS(Ns	reduce(a)sreduce(a, b=42)sreduce(a, b, c, d)sreduce(**c)sreduce()(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRias



(R9R.R
RlRmRnRi(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRjNs
			t
Test_printcBs�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�ZRS(tprintcCs d}d}|j||�dS(Nsprint 1,   1+1,   1+1+1sprint(1,   1+1,   1+1+1)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRgtscCs*d}|j|�d}|j|�dS(Nsprint()s	print('')(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_idempotencyys
cCsOtj|jj_d}|j|�d}|j|�d}|j|�dS(Nsprint(1, 1+1, 1+1+1)sprint()s	print('')(Rt!python_grammar_no_print_statementRtdrivertgrammarR&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt"test_idempotency_print_as_function�s

cCs d}d}|j||�dS(Nsprint 1, 1+1, 1+1+1sprint(1, 1+1, 1+1+1)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRD�scCs d}d}|j||�dS(Ns
print 1, 2sprint(1, 2)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRE�scCs d}d}|j||�dS(NRpsprint()(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRF�scCs d}d}|j||�dS(Nsprint whatever; printsprint(whatever); print()(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRG�scCs d}d}|j||�dS(Nsprint; print whatever;sprint(); print(whatever);(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRH�scCs d}d}|j||�dS(Nsprint (a, b, c)sprint((a, b, c))(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt
test_tuple�scCs d}d}|j||�dS(Nsprint 1, 2, 3,sprint(1, 2, 3, end=' ')(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_trailing_comma_1�scCs d}d}|j||�dS(Nsprint 1, 2,sprint(1, 2, end=' ')(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_trailing_comma_2�scCs d}d}|j||�dS(Nsprint 1,sprint(1, end=' ')(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_trailing_comma_3�scCs d}d}|j||�dS(Nsprint >>sys.stderr, 1, 2, 3sprint(1, 2, 3, file=sys.stderr)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt!test_vargs_without_trailing_comma�scCs d}d}|j||�dS(Nsprint >>sys.stderr, 1, 2,s%print(1, 2, end=' ', file=sys.stderr)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_with_trailing_comma�scCs d}d}|j||�dS(Nsprint >>sys.stderr, 1+1sprint(1+1, file=sys.stderr)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_no_trailing_comma�scCs d}d}|j||�dS(Nsprint >>  sys.stderrsprint(file=sys.stderr)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_spaces_before_file�scCs3d}|j|�d}d}|j||�dS(Ns<from __future__ import print_function
print('Hai!', end=' ')sprint 'Hello, world!'sprint('Hello, world!')(R&R!(RRYR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_with_future_print_function�s

(R9R.R
RgRqRuRDRERFRGRHRvRwRxRyRzR{R|R}R~(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRoqs$																t	Test_execcBsheZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�ZRS(texeccCs d}d}|j||�dS(Ns  exec code in ns1,   ns2s  exec(code, ns1,   ns2)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRg�scCs d}d}|j||�dS(Ns	exec codes
exec(code)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR?�scCs d}d}|j||�dS(Nsexec code in nssexec(code, ns)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_with_globals�scCs d}d}|j||�dS(Nsexec code in ns1, ns2sexec(code, ns1, ns2)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_with_globals_locals�scCs d}d}|j||�dS(Nsexec (a.b()) in nssexec((a.b()), ns)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRQ�scCs d}d}|j||�dS(Nsexec a.b() + c in nssexec(a.b() + c, ns)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRR�scCsd}|j|�dS(Ns
exec(code)(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRZ�scCsd}|j|�dS(Nsexec (code)(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR[scCsd}|j|�dS(Nsexec(code, ns)(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR\scCsd}|j|�dS(Nsexec(code, ns1, ns2)(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR]
s(
R9R.R
RgR?R�R�RQRRRZR[R\R](((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�s									t	Test_reprcBsMeZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	RS(treprcCs d}d}|j||�dS(Ns
x =   `1 + 2`sx =   repr(1 + 2)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRgscCs d}d}|j||�dS(Nsx = `1 + 2`sx = repr(1 + 2)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt
test_simple_1scCs d}d}|j||�dS(Nsy = `x`sy = repr(x)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt
test_simple_2scCs d}d}|j||�dS(Nsz = `y`.__repr__()sz = repr(y).__repr__()(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_complex scCs d}d}|j||�dS(Ns
x = `1, 2, 3`sx = repr((1, 2, 3))(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRv%scCs d}d}|j||�dS(Ns
x = `1 + `2``sx = repr(1 + repr(2))(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_nested*scCs d}d}|j||�dS(Nsx = `1, 2 + `3, 4``sx = repr((1, 2 + repr((3, 4))))(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_nested_tuples/s(
R9R.R
RgR�R�R�RvR�R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�s						tTest_exceptcBs�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�ZRS(texceptcCs d}d}|j||�dS(Nsq
            try:
                pass
            except (RuntimeError, ImportError),    e:
                passss
            try:
                pass
            except (RuntimeError, ImportError) as    e:
                pass(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRg7scCs d}d}|j||�dS(NsV
            try:
                pass
            except Foo, e:
                passsX
            try:
                pass
            except Foo as e:
                pass(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_simpleDscCs d}d}|j||�dS(NsU
            try:
                pass
            except Foo,e:
                passsX
            try:
                pass
            except Foo as e:
                pass(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt"test_simple_no_space_before_targetQscCs d}d}|j||�dS(Ns�
            def foo():
                try:
                    pass
                except Exception, (f, e):
                    pass
                except ImportError, e:
                    passs
            def foo():
                try:
                    pass
                except Exception as xxx_todo_changeme:
                    (f, e) = xxx_todo_changeme.args
                    pass
                except ImportError as e:
                    pass(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_tuple_unpack^s
cCs d}d}|j||�dS(Nsn
            try:
                pass
            except (RuntimeError, ImportError), e:
                passsp
            try:
                pass
            except (RuntimeError, ImportError) as e:
                pass(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_multi_classsscCs d}d}|j||�dS(Nsa
            try:
                pass
            except Exception, [a, b]:
                passs�
            try:
                pass
            except Exception as xxx_todo_changeme:
                [a, b] = xxx_todo_changeme.args
                pass(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_list_unpack�scCs d}d}|j||�dS(Ns_
            try:
                pass
            except Exception, d[5]:
                passs�
            try:
                pass
            except Exception as xxx_todo_changeme:
                d[5] = xxx_todo_changeme
                pass(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_weird_target_1�scCs d}d}|j||�dS(Ns`
            try:
                pass
            except Exception, a.foo:
                passs�
            try:
                pass
            except Exception as xxx_todo_changeme:
                a.foo = xxx_todo_changeme
                pass(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_weird_target_2�scCs d}d}|j||�dS(Nsb
            try:
                pass
            except Exception, a().foo:
                passs�
            try:
                pass
            except Exception as xxx_todo_changeme:
                a().foo = xxx_todo_changeme
                pass(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_weird_target_3�scCs d}d}|j||�dS(Ns�
            try:
                pass
            except Exception, a:
                pass
            except:
                passs�
            try:
                pass
            except Exception as a:
                pass
            except:
                pass(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_bare_except�scCs d}d}|j||�dS(Ns�
            try:
                pass
            except Exception, a:
                pass
            except:
                pass
            else:
                pass
            finally:
                passs�
            try:
                pass
            except Exception as a:
                pass
            except:
                pass
            else:
                pass
            finally:
                pass(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt!test_bare_except_and_else_finally�scCs d}d}|j||�dS(Ns�
            try:
                pass
            except TypeError, b:
                pass
            except Exception, a:
                pass
            except:
                passs�
            try:
                pass
            except TypeError as b:
                pass
            except Exception as a:
                pass
            except:
                pass(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt+test_multi_fixed_excepts_before_bare_except�s	
cCstd}d}|j||�d}d}|j||�d}d}|j||�d}d}|j||�dS(	Nsd
            try: raise TypeError
            except TypeError, e:
                pass
            sf
            try: raise TypeError
            except TypeError as e:
                pass
            sd
            try:
                raise TypeError
            except TypeError, e: pass
            sf
            try:
                raise TypeError
            except TypeError as e: pass
            sT
            try: raise TypeError
            except TypeError, e: pass
            sV
            try: raise TypeError
            except TypeError as e: pass
            s�
            try: raise TypeError
            except TypeError, e: pass
            else: function()
            finally: done()
            s�
            try: raise TypeError
            except TypeError as e: pass
            else: function()
            finally: done()
            (R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_one_line_suites�scCsd}|j|�dS(NsO
            try:
                pass
            except:
                pass(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRZ/scCsd}|j|�dS(NsY
            try:
                pass
            except Exception:
                pass(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR[7scCsd}|j|�dS(Nsg
            try:
                pass
            except (Exception, SystemExit):
                pass(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR\?s(R9R.R
RgR�R�R�R�R�R�R�R�R�R�R�R�RZR[R\(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�4s"	
	
	
										0		t
Test_raisecBs�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�ZRS(traisecCs d}d}|j||�dS(Nsraise Exception, 5sraise Exception(5)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR?JscCs<d}d}|j||�d}d}|j||�dS(Nsraise Exception,5sraise Exception(5)sraise   Exception,    5sraise   Exception(5)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRgOscCsXd}d}|j||�d}d}|j||�d}d}|j||�dS(Nsraise Exception, 5 # foosraise Exception(5) # foosraise E, (5, 6) % (a, b) # foosraise E((5, 6) % (a, b)) # foos:def foo():
                    raise Exception, 5, 6 # foosIdef foo():
                    raise Exception(5).with_traceback(6) # foo(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_with_commentsXscCs d}d}|j||�dS(Nsraise Exception(5), None, tbs%raise Exception(5).with_traceback(tb)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_None_valuegscCs d}d}|j||�dS(Nsraise Exception, (5, 6, 7)sraise Exception(5, 6, 7)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_tuple_valuelscCs d}d}|j||�dS(Nsraise E, (5, 6) % (a, b)sraise E((5, 6) % (a, b))(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_tuple_detectionqscCs d}d}|j||�dS(Nsraise (((E1, E2), E3), E4), Vsraise E1(V)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_tuple_exc_1vscCs d}d}|j||�dS(Nsraise (E1, (E2, E3), E4), Vsraise E1(V)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_tuple_exc_2{scCsd}|j|d�dS(Nsraise 'foo's+Python 3 does not support string exceptions(R)(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_string_exc�scCsd}|j|d�dS(Nsraise "foo", 5s+Python 3 does not support string exceptions(R)(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_string_exc_val�scCsd}|j|d�dS(Nsraise "foo", 5, 6s+Python 3 does not support string exceptions(R)(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_string_exc_val_tb�scCs d}d}|j||�dS(Ns4def foo():
                    raise Exception, 5, 6sCdef foo():
                    raise Exception(5).with_traceback(6)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt	test_tb_1�scCs d}d}|j||�dS(Nshdef foo():
                    a = 5
                    raise Exception, 5, 6
                    b = 6swdef foo():
                    a = 5
                    raise Exception(5).with_traceback(6)
                    b = 6(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt	test_tb_2�scCs d}d}|j||�dS(Ns2def foo():
                    raise Exception,5,6sCdef foo():
                    raise Exception(5).with_traceback(6)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt	test_tb_3�scCs d}d}|j||�dS(Nsfdef foo():
                    a = 5
                    raise Exception,5,6
                    b = 6swdef foo():
                    a = 5
                    raise Exception(5).with_traceback(6)
                    b = 6(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt	test_tb_4�scCs d}d}|j||�dS(Ns<def foo():
                    raise Exception, (5, 6, 7), 6sIdef foo():
                    raise Exception(5, 6, 7).with_traceback(6)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt	test_tb_5�scCs d}d}|j||�dS(Nspdef foo():
                    a = 5
                    raise Exception, (5, 6, 7), 6
                    b = 6s}def foo():
                    a = 5
                    raise Exception(5, 6, 7).with_traceback(6)
                    b = 6(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt	test_tb_6�s(R9R.R
R?RgR�R�R�R�R�R�R�R�R�R�R�R�R�R�R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�Gs$																	t
Test_throwcBs�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zd�ZRS(tthrowcCs d}d}|j||�dS(Nsg.throw(Exception, 5)sg.throw(Exception(5))(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRD�scCs d}d}|j||�dS(Nsg.throw(Exception,5)sg.throw(Exception(5))(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRE�scCs d}d}|j||�dS(Nsg.throw(Exception, (5, 6, 7))sg.throw(Exception(5, 6, 7))(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRF�scCs d}d}|j||�dS(Ns5 + g.throw(Exception, 5)s5 + g.throw(Exception(5))(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRG�scCsd}|j|d�dS(Nsg.throw("foo")s+Python 3 does not support string exceptions(R)(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_warn_1�scCsd}|j|d�dS(Nsg.throw("foo", 5)s+Python 3 does not support string exceptions(R)(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_warn_2�scCsd}|j|d�dS(Nsg.throw("foo", 5, 6)s+Python 3 does not support string exceptions(R)(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_warn_3�scCsd}|j|�dS(Nsg.throw(Exception)(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_untouched_1�scCsd}|j|�dS(Nsg.throw(Exception(5, 6))(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_untouched_2�scCsd}|j|�dS(Ns5 + g.throw(Exception(5, 6))(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_untouched_3�scCs d}d}|j||�dS(Ns7def foo():
                    g.throw(Exception, 5, 6)sFdef foo():
                    g.throw(Exception(5).with_traceback(6))(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR��scCs d}d}|j||�dS(Nskdef foo():
                    a = 5
                    g.throw(Exception, 5, 6)
                    b = 6szdef foo():
                    a = 5
                    g.throw(Exception(5).with_traceback(6))
                    b = 6(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�scCs d}d}|j||�dS(Ns5def foo():
                    g.throw(Exception,5,6)sFdef foo():
                    g.throw(Exception(5).with_traceback(6))(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�
scCs d}d}|j||�dS(Nsidef foo():
                    a = 5
                    g.throw(Exception,5,6)
                    b = 6szdef foo():
                    a = 5
                    g.throw(Exception(5).with_traceback(6))
                    b = 6(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�scCs d}d}|j||�dS(Ns?def foo():
                    g.throw(Exception, (5, 6, 7), 6)sLdef foo():
                    g.throw(Exception(5, 6, 7).with_traceback(6))(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�scCs d}d}|j||�dS(Nssdef foo():
                    a = 5
                    g.throw(Exception, (5, 6, 7), 6)
                    b = 6s�def foo():
                    a = 5
                    g.throw(Exception(5, 6, 7).with_traceback(6))
                    b = 6(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�&scCs d}d}|j||�dS(Ns;def foo():
                    a + g.throw(Exception, 5, 6)sJdef foo():
                    a + g.throw(Exception(5).with_traceback(6))(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt	test_tb_71scCs d}d}|j||�dS(Nsodef foo():
                    a = 5
                    a + g.throw(Exception, 5, 6)
                    b = 6s~def foo():
                    a = 5
                    a + g.throw(Exception(5).with_traceback(6))
                    b = 6(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt	test_tb_88s(R9R.R
RDRERFRGR�R�R�R�R�R�R�R�R�R�R�R�R�R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR��s&																	t	Test_longcBs;eZdZd�Zd�Zd�Zd�Zd�ZRS(tlongcCs d}d}|j||�dS(Nsx = long(x)s
x = int(x)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRDFscCs d}d}|j||�dS(Nsy = isinstance(x, long)sy = isinstance(x, int)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyREKscCs d}d}|j||�dS(Nsz = type(x) in (int, long)sz = type(x) in (int, int)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRFPscCs�d}|j|�d}|j|�d}|j|�d}|j|�d}|j|�d}|j|�d}|j|�dS(Nslong = Trues
s.long = Truesdef long(): passsclass long(): passsdef f(long): passsdef f(g, long): passsdef f(x, long=True): pass(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRiUs





cCs d}d}|j||�dS(Nsx =   long(  x  )sx =   int(  x  )(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRgks(R9R.R
RDRERFRiRg(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�Cs				t
Test_execfilecBs eZdZd�Zd�ZRS(texecfilecCs�d}d}|j||�d}d}|j||�d}d}|j||�d}d}|j||�d	}d
}|j||�d}d}|j||�dS(
Nsexecfile("fn")s.exec(compile(open("fn").read(), "fn", 'exec'))sexecfile("fn", glob)s4exec(compile(open("fn").read(), "fn", 'exec'), glob)sexecfile("fn", glob, loc)s9exec(compile(open("fn").read(), "fn", 'exec'), glob, loc)sexecfile("fn", globals=glob)s<exec(compile(open("fn").read(), "fn", 'exec'), globals=glob)sexecfile("fn", locals=loc)s:exec(compile(open("fn").read(), "fn", 'exec'), locals=loc)s(execfile("fn", globals=glob, locals=loc)sHexec(compile(open("fn").read(), "fn", 'exec'), globals=glob, locals=loc)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_conversionts$cCs<d}d}|j||�d}d}|j||�dS(Nsexecfile( "fn" )s0exec(compile(open( "fn" ).read(), "fn", 'exec'))sexecfile("fn",  globals = glob)s?exec(compile(open("fn").read(), "fn", 'exec'),  globals = glob)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_spacing�s(R9R.R
R�R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�qs	tTest_isinstancecBs)eZdZd�Zd�Zd�ZRS(t
isinstancecCstd}d}|j||�d}d}|j||�d}d}|j||�d}d}|j||�dS(	Nsisinstance(x, (int, int, int))sisinstance(x, int)s,isinstance(x, (int, float, int, int, float))sisinstance(x, (int, float))s1isinstance(x, (int, float, int, int, float, str))s isinstance(x, (int, float, str))s4isinstance(foo() + bar(), (x(), y(), x(), int, int))s/isinstance(foo() + bar(), (x(), y(), x(), int))(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_remove_multiple_items�scCs d}d}|j||�dS(Ns4if    isinstance(  foo(), (  bar, bar, baz )) : passs/if    isinstance(  foo(), (  bar, baz )) : pass(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRg�scCs|jd�dS(Nsisinstance(x, (str, int))(R&(R((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRi�s(R9R.R
R�RgRi(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR��s		t	Test_dictcBsIeZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z d�Z!d �Z"d!�Z#d"�Z$d#�Z%RS($tdictcCs�d}d}|j||�d}d}|j||�d}d}|j||�d}d}|j||�d	}d
}|j||�d}d}|j||�dS(Nsif   d. keys  (  )  : passs if   list(d. keys  (  ))  : passsif   d. items  (  )  : passs!if   list(d. items  (  ))  : passsif   d. iterkeys  ( )  : passsif   iter(d. keys  ( ))  : passs"[i for i in    d.  iterkeys(  )  ]s[i for i in    d.  keys(  )  ]sif   d. viewkeys  ( )  : passsif   d. keys  ( )  : passs"[i for i in    d.  viewkeys(  )  ](R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRg�s$cCs�d}d}|j||�d}d}|j||�d}d}|j||�d}d}|j||�d}d}|j||�d	}d}|j||�dS(
Nsd.keys() # fooslist(d.keys()) # foosd.items()  # fooslist(d.items())  # foosd.iterkeys()  # foositer(d.keys())  # foos/[i for i in d.iterkeys() # foo
               ]s+[i for i in d.keys() # foo
               ]sd.viewitems()  # foo(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_trailing_comment�s$cCs]xVtjD]K}d|}|j|�d|}|j|�d|}|j|�q
WdS(Nss = %s(d.keys())ss = %s(d.values())ss = %s(d.items())(Rtconsuming_callsR&(RtwrapperRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRi�s




cCs<d}d}|j||�d}d}|j||�dS(Nsd.keys()slist(d.keys())sa[0].foo().keys()slist(a[0].foo().keys())(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_01�scCs d}d}|j||�dS(Ns	d.items()slist(d.items())(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_02scCs d}d}|j||�dS(Ns
d.values()slist(d.values())(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_03scCs d}d}|j||�dS(Nsd.iterkeys()siter(d.keys())(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_04
scCs d}d}|j||�dS(Ns
d.iteritems()siter(d.items())(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_05scCs d}d}|j||�dS(Nsd.itervalues()siter(d.values())(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_06scCsd}|j|�dS(Nslist(d.keys())(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_07scCsd}|j|�dS(Nssorted(d.keys())(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_08scCs d}d}|j||�dS(Nsiter(d.keys())siter(list(d.keys()))(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_09!scCs d}d}|j||�dS(Ns
foo(d.keys())sfoo(list(d.keys()))(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRM&scCs d}d}|j||�dS(Nsfor i in d.keys(): print is for i in list(d.keys()): print i(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRN+scCs d}d}|j||�dS(Nsfor i in d.iterkeys(): print isfor i in d.keys(): print i(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_120scCs d}d}|j||�dS(Ns[i for i in d.keys()]s for i in list(d.keys())](R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_135scCs d}d}|j||�dS(Ns[i for i in d.iterkeys()]s[i for i in d.keys()](R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_14:scCs d}d}|j||�dS(Ns(i for i in d.keys())s(i for i in list(d.keys()))(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_15?scCs d}d}|j||�dS(Ns(i for i in d.iterkeys())s(i for i in d.keys())(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_16DscCs d}d}|j||�dS(Nsiter(d.iterkeys())siter(d.keys())(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_17IscCs d}d}|j||�dS(Nslist(d.iterkeys())slist(d.keys())(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_18NscCs d}d}|j||�dS(Nssorted(d.iterkeys())ssorted(d.keys())(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_19SscCs d}d}|j||�dS(Nsfoo(d.iterkeys())sfoo(iter(d.keys()))(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_20XscCs d}d}|j||�dS(Nsprint h.iterkeys().next()sprint iter(h.keys()).next()(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_21]scCs d}d}|j||�dS(Nsprint h.keys()[0]sprint list(h.keys())[0](R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_22bscCs d}d}|j||�dS(Nsprint list(h.iterkeys().next())s!print list(iter(h.keys()).next())(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_23gscCs d}d}|j||�dS(Nsfor x in h.keys()[0]: print xs#for x in list(h.keys())[0]: print x(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_24lscCs d}d}|j||�dS(Nsd.viewkeys()sd.keys()(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_25qscCs d}d}|j||�dS(Ns
d.viewitems()s	d.items()(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_26vscCs d}d}|j||�dS(Nsd.viewvalues()s
d.values()(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_27{scCs d}d}|j||�dS(Ns[i for i in d.viewkeys()]s[i for i in d.keys()](R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_28�scCs d}d}|j||�dS(Ns(i for i in d.viewkeys())s(i for i in d.keys())(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_29�scCs d}d}|j||�dS(Nsiter(d.viewkeys())siter(d.keys())(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_30�scCs d}d}|j||�dS(Nslist(d.viewkeys())slist(d.keys())(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_31�scCs d}d}|j||�dS(Nssorted(d.viewkeys())ssorted(d.keys())(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_32�s(&R9R.R
RgR�RiR�R�R�R�R�R�R�R�R�RMRNR�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR��sH																																			tTest_xrangecBs_eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�ZRS(
txrangecCsXd}d}|j||�d}d}|j||�d}d}|j||�dS(Nsx =    xrange(  10  )sx =    range(  10  )sx = xrange(  1  ,  10   )sx = range(  1  ,  10   )sx = xrange(  0  ,  10 ,  2 )sx = range(  0  ,  10 ,  2 )(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRg�scCs d}d}|j||�dS(Nsx = xrange(10)s
x = range(10)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_single_arg�scCs d}d}|j||�dS(Nsx = xrange(1, 10)sx = range(1, 10)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt
test_two_args�scCs d}d}|j||�dS(Nsx = xrange(0, 10, 2)sx = range(0, 10, 2)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_three_args�scCs�d}d}|j||�d}d}|j||�d}d}|j||�d}d}|j||�d	}d
}|j||�dS(Nsx = range(10, 3, 9)sx = list(range(10, 3, 9))sx = foo(range(10, 3, 9))sx = foo(list(range(10, 3, 9)))sx = range(10, 3, 9) + [4]sx = list(range(10, 3, 9)) + [4]sx = range(10)[::-1]sx = list(range(10))[::-1]sx = range(10)  [3]sx = list(range(10))  [3](R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_wrap_in_list�scCs<d}d}|j||�d}d}|j||�dS(Nsfor i in xrange(10):
    j=isfor i in range(10):
    j=is[i for i in xrange(10)]s[i for i in range(10)](R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_xrange_in_for�scCs|jd�|jd�dS(Nsfor i in range(10): passs[i for i in range(10)](R&(R((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_range_in_for�s
cCs|jd�dS(Nsx in range(10, 3, 9)(R&(R((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_in_contains_test�scCs)x"tjD]}|jd|�q
WdS(Nsa = %s(range(10))(RR�R&(Rtcall((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_in_consuming_context�s(R9R.R
RgR�R�R�R�R�R�R�R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR��s	
								tTest_xrange_with_reducecBseZd�Zd�ZRS(cCs tt|�jddg�dS(NR�Rk(tsuperR�R(R((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�scCs d}d}|j||�dS(Nsreduce(x, xrange(5))s0from functools import reduce
reduce(x, range(5))(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_double_transform�s(R9R.RR�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR��s	tTest_raw_inputcBsVeZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
RS(	t	raw_inputcCs<d}d}|j||�d}d}|j||�dS(Nsx =    raw_input(   )sx =    input(   )sx = raw_input(   ''   )sx = input(   ''   )(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRg�scCs d}d}|j||�dS(Nsx = raw_input()sx = input()(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRD�scCs d}d}|j||�dS(Nsx = raw_input('')s
x = input('')(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRE�scCs d}d}|j||�dS(Nsx = raw_input('prompt')sx = input('prompt')(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRFscCs d}d}|j||�dS(Nsx = raw_input(foo(a) + 6)sx = input(foo(a) + 6)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRGscCs d}d}|j||�dS(Nsx = raw_input(invite).split()sx = input(invite).split()(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRHscCs d}d}|j||�dS(Ns x = raw_input(invite) . split ()sx = input(invite) . split ()(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRIscCs d}d}|j||�dS(Nsx = int(raw_input())sx = int(input())(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRKs(R9R.R
RgRDRERFRGRHRIRK(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR��s								tTest_funcattrscBs;eZdZdddddddgZd�Zd	�ZRS(
t	funcattrstclosuretdoctnametdefaultstcodetglobalsR�cCs`xY|jD]N}d|}d|}|j||�d|}d|}|j||�q
WdS(Ns	a.func_%ssa.__%s__sself.foo.func_%s.foo_barsself.foo.__%s__.foo_bar(tattrsR!(RtattrR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRh s



cCs]xV|jD]K}d|}|j|�d|}|j|�d|}|j|�q
WdS(Nsfoo(func_%s + 5)s
f(foo.__%s__)sf(foo.__%s__.foo)(R�R&(RR�RY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRi*s




(R9R.R
R�RhRi(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�s	
tTest_xreadlinescBs)eZdZd�Zd�Zd�ZRS(t
xreadlinescCsXd}d}|j||�d}d}|j||�d}d}|j||�dS(Nsfor x in f.xreadlines(): passsfor x in f: passs!for x in foo().xreadlines(): passsfor x in foo(): passs'for x in (5 + foo()).xreadlines(): passsfor x in (5 + foo()): pass(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRV8scCsXd}d}|j||�d}d}|j||�d}d}|j||�dS(Nsfoo(f.xreadlines + 5)sfoo(f.__iter__ + 5)sfoo(f().xreadlines + 5)sfoo(f().__iter__ + 5)sfoo((5 + f()).xreadlines + 5)sfoo((5 + f()).__iter__ + 5)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt
test_attr_refEscCsPd}|j|�d}|j|�d}|j|�d}|j|�dS(Nsfor x in f.xreadlines(5): passs for x in f.xreadlines(k=5): passs$for x in f.xreadlines(*k, **v): passsfoo(xreadlines)(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRiRs


(R9R.R
RVR�Ri(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�5s	
	
tImportsFixerTestscBs>eZd�Zd�Zd�Zd�Zd�Zd�ZRS(cCslxe|jj�D]T\}}d|}d|}|j||�d|}d|}|j||�qWdS(Ns	import %ssimport foo, %s, bar(tmodulestitemsR!(RtoldtnewR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_import_modulebs



cCs�x�|jj�D]x\}}d|}d|}|j||�d|}d|}|j||�d|}d|}|j||�qWdS(Nsfrom %s import foosfrom %s import foo, barsfrom %s import (yes, no)(R�R�R!(RR�RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_import_fromls





cCslxe|jj�D]T\}}d|}d|}|j||�d|}d|}|j||�qWdS(Nsimport %s as foo_bar(R�R�R!(RR�RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_import_module_aszs



cCsHxA|jj�D]0\}}d|}d|}|j||�qWdS(Nsfrom %s import foo as bar(R�R�R!(RR�RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_import_from_as�s

cCsHxA|jj�D]0\}}d|}d|}|j||�qWdS(Nsfrom %s import *(R�R�R!(RR�RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt	test_star�s

cCsx�|jj�D]�\}}d||f}d||f}|j||�d||f}d||f}|j||�d|f}|j|�d|||f}d|||f}|j||�d||f}d||f}|j||�qWdS(NsG
                import %s
                foo(%s.bar)
                sJ
                from %s import x
                %s = 23
                sJ
                def f():
                    %s.method()
                sJ
                import %s
                %s.bar(%s.foo)
                s@
                import %s
                x.%s
                (R�R�R!R&(RR�RR=R>RY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_import_module_usage�s

(R9R.RRRRRR(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�`s	
		
		tTest_importscBs0eZdZddlmZd�Zd�ZRS(timportsi(tMAPPINGcCs d}d}|j||�dS(Nsimport urlparse, cStringIOsimport urllib.parse, io(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_multiple_imports�scCs d}d}|j||�dS(Nsv
            import copy_reg as bar, HTMLParser as foo, urlparse
            s = urlparse.spam(bar.foo())
            s~
            import copyreg as bar, html.parser as foo, urllib.parse
            s = urllib.parse.spam(bar.foo())
            (R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_multiple_imports_as�s(R9R.R
tfixes.fix_importsR	R�R
R(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�s	t
Test_imports2cBseZdZddlmZRS(timports2i(R	(R9R.R
tfixes.fix_imports2R	R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR
�stTest_imports_fixer_ordercBseZd�Zd�ZRS(cCsqtt|�jddg�ddlm}|j�|_ddlm}xd	D]}|||j|<qRWdS(
NRRi(R	tdbhashtdumbdbmtdbmtgdbm(RRRR(R�RRRR	tcopyR�R(Rtmapping2tmapping1tkey((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�s
cCs+x$dD]}||_|jd�qWdS(NRRtimport(simportssimports2(R
R8(Rtfix((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt$test_after_local_imports_refactoring�s
	(R9R.RR(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�s	tTest_urllibcBs]eZdZddlmZd�Zd�Zd�Zd�Z	d�Z
d�Zd	�ZRS(
turllibi(R	cCs`xY|jj�D]H\}}d|}ddjttd�|��}|j||�qWdS(Ns	import %ss, i(R�R�R$tmapRR!(RR�tchangesR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�s
"c
Cslxe|jj�D]T\}}g}x�|D]�\}}xb|D]Z}|j|�d||f}d||f}|j||�d|}	|j|	�q<Wd|dj|�f}d|dj|�f}|j||�ddj|�}	|j|	�q)Wd|dj|�f}djg|D]%\}}d|dj|�f^q&�}|j||�qWdS(Nsfrom %s import %ssfrom foo import %ss, s
(R�R�tappendR!R&R$(
RR�Rtall_membersRtmemberstmemberR=R>RY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�s&


	2cCs2x+|jD] }d|}|j|d�q
WdS(Nsimport %s as foos#This module is now multiple modules(R�R)(RR�RY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRs
cCs�x�|jj�D]�\}}x�|D]�\}}xt|D]l}d||f}d||f}|j||�d|||f}d|||f}|j||�q6Wq#WqWdS(Nsfrom %s import %s as foo_barsfrom %s import %s as blah, %s(R�R�R!(RR�RRR"R#R=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRs
cCs2x+|jD] }d|}|j|d�q
WdS(Nsfrom %s import *sCannot handle star imports(R�R)(RR�RY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR s
cCs<d}d}|j||�d}d}|j||�dS(Ns6
def foo():
    from urllib import urlencode, urlopen
sZ
def foo():
    from urllib.parse import urlencode
    from urllib.request import urlopen
sB
def foo():
    other()
    from urllib import urlencode, urlopen
sf
def foo():
    other()
    from urllib.parse import urlencode
    from urllib.request import urlopen
(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt
test_indented%sc	Cs�x�|jj�D]�\}}x�|D]�\}}x�|D]�}djg|j|D]\}}|^qP�}d|||f}	d|||f}
|j|	|
�d|||||f}	d|||||f}
|j|	|
�q6Wq#WqWdS(Ns, s^
                        import %s
                        foo(%s.%s)
                        s`
                        import %s
                        %s.%s(%s.%s)
                        (R�R�R$R!(RR�RRR"R#R6tmemst
new_importR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR@s
	&(
R9R.R
tfixes.fix_urllibR	R�RRRRRR$R(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�s						t
Test_inputcBsMeZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	RS(tinputcCs<d}d}|j||�d}d}|j||�dS(Nsx =   input(   )sx =   eval(input(   ))sx = input(   ''   )sx = eval(input(   ''   ))(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRg]scCs d}d}|j||�dS(Nsx = input()  #  foosx = eval(input())  #  foo(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�fscCs=d}|j|�d}|j|�d}|j|�dS(Nsx = eval(input())sx = eval(input(''))sx = eval(input(foo(5) + 9))(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRqks

cCs d}d}|j||�dS(Nsx = input()sx = eval(input())(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRDuscCs d}d}|j||�dS(Ns
x = input('')sx = eval(input(''))(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyREzscCs d}d}|j||�dS(Nsx = input('prompt')sx = eval(input('prompt'))(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRFscCs d}d}|j||�dS(Nsx = input(foo(5) + 9)sx = eval(input(foo(5) + 9))(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRG�s(
R9R.R
RgR�RqRDRERFRG(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR(Zs				
			tTest_tuple_paramscBs�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(ttuple_paramscCsd}|j|�dS(Nsdef foo(): pass(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRZ�scCsd}|j|�dS(Nsdef foo(a, b, c): pass(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR[�scCsd}|j|�dS(Nsdef foo(a=3, b=4, c=5): pass(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR\�scCs d}d}|j||�dS(Ns8
            def foo(((a, b), c)):
                x = 5sn
            def foo(xxx_todo_changeme):
                ((a, b), c) = xxx_todo_changeme
                x = 5(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRD�scCs d}d}|j||�dS(Ns;
            def foo(((a, b), c), d):
                x = 5sq
            def foo(xxx_todo_changeme, d):
                ((a, b), c) = xxx_todo_changeme
                x = 5(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRE�scCs d}d}|j||�dS(Ns@
            def foo(((a, b), c), d) -> e:
                x = 5sv
            def foo(xxx_todo_changeme, d) -> e:
                ((a, b), c) = xxx_todo_changeme
                x = 5(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRF�scCs d}d}|j||�dS(Ns/
            def foo(((a, b), c)): x = 5; y = 7sV
            def foo(xxx_todo_changeme): ((a, b), c) = xxx_todo_changeme; x = 5; y = 7(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_semicolon�scCs d}d}|j||�dS(NsE
            def foo(((a, b), c), d, e=5) -> z:
                x = 5s{
            def foo(xxx_todo_changeme, d, e=5) -> z:
                ((a, b), c) = xxx_todo_changeme
                x = 5(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt
test_keywords�scCs d}d}|j||�dS(NsR
            def foo(((a, b), c), d, *vargs, **kwargs) -> z:
                x = 5s�
            def foo(xxx_todo_changeme, d, *vargs, **kwargs) -> z:
                ((a, b), c) = xxx_todo_changeme
                x = 5(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_varargs�scCs d}d}|j||�dS(NsH
            def foo(((a, b), c), (d, e, f)) -> z:
                x = 5s�
            def foo(xxx_todo_changeme, xxx_todo_changeme1) -> z:
                ((a, b), c) = xxx_todo_changeme
                (d, e, f) = xxx_todo_changeme1
                x = 5(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_multi_1�scCs d}d}|j||�dS(NsQ
            def foo(x, ((a, b), c), d, (e, f, g), y) -> z:
                x = 5s�
            def foo(x, xxx_todo_changeme, d, xxx_todo_changeme1, y) -> z:
                ((a, b), c) = xxx_todo_changeme
                (e, f, g) = xxx_todo_changeme1
                x = 5(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_multi_2�scCs d}d}|j||�dS(Nsj
            def foo(((a, b), c), (d, e, f)) -> z:
                "foo foo foo foo"
                x = 5s�
            def foo(xxx_todo_changeme, xxx_todo_changeme1) -> z:
                "foo foo foo foo"
                ((a, b), c) = xxx_todo_changeme
                (d, e, f) = xxx_todo_changeme1
                x = 5(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_docstring�scCsd}|j|�dS(Nslambda x: x + 5(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_lambda_no_change�scCstd}d}|j||�d}d}|j||�d}d}|j||�d}d}|j||�dS(Nslambda (x): x + 5slambda x: x + 5slambda(x): x + 5slambda ((((x)))): x + 5slambda((((x)))): x + 5(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_lambda_parens_single_argscCstd}d}|j||�d}d}|j||�d}d}|j||�d}d}|j||�dS(Nslambda (x, y): x + f(y)slambda x_y: x_y[0] + f(x_y[1])slambda(x, y): x + f(y)slambda (((x, y))): x + f(y)slambda(((x, y))): x + f(y)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_lambda_simplescCs<d}d}|j||�d}d}|j||�dS(Nslambda (x,): x + f(x)slambda x1: x1[0] + f(x1[0])slambda (((x,))): x + f(x)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_lambda_one_tuple#scCs d}d}|j||�dS(Nslambda (x, y): x + x + f(x) + xs0lambda x_y: x_y[0] + x_y[0] + f(x_y[0]) + x_y[0](R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_lambda_simple_multi_use,scCs d}d}|j||�dS(Nslambda (x, y): y + xslambda x_y: x_y[1] + x_y[0](R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_lambda_simple_reverse1scCs<d}d}|j||�d}d}|j||�dS(Nslambda (x, (y, z)): x + y + zs2lambda x_y_z: x_y_z[0] + x_y_z[1][0] + x_y_z[1][1]s!lambda (((x, (y, z)))): x + y + z(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_lambda_nested6scCs d}d}|j||�dS(Ns lambda (x, (y, z)): x + y + f(y)s5lambda x_y_z: x_y_z[0] + x_y_z[1][0] + f(x_y_z[1][0])(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_lambda_nested_multi_use?s(R9R.R
RZR[R\RDRERFR,R-R.R/R0R1R2R3R4R5R6R7R8R9(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR*�s*																					tTest_methodattrscBs/eZdZdddgZd�Zd�ZRS(tmethodattrstfuncRtclasscCs�x�|jD]x}d|}|dkr/d}n
d|}|j||�d|}|dkrhd}n
d|}|j||�q
WdS(Nsa.im_%sR=sa.__self__.__class__sa.__%s__sself.foo.im_%s.foo_bars#self.foo.__self__.__class__.foo_barsself.foo.__%s__.foo_bar(R�R!(RR�R=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRhIs
	

	
cCs]xV|jD]K}d|}|j|�d|}|j|�d|}|j|�q
WdS(Nsfoo(im_%s + 5)s
f(foo.__%s__)sf(foo.__%s__.foo)(R�R&(RR�RY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRiYs




(R9R.R
R�RhRi(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR:Ds	t	Test_nextcBs�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�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/RS(.tnextcCs d}d}|j||�dS(Ns	it.next()snext(it)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRDgscCs d}d}|j||�dS(Nsa.b.c.d.next()s
next(a.b.c.d)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRElscCs d}d}|j||�dS(Ns(a + b).next()s
next((a + b))(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRFqscCs d}d}|j||�dS(Ns
a().next()s	next(a())(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRGvscCs d}d}|j||�dS(Nsa().next() + bs
next(a()) + b(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRH{scCs d}d}|j||�dS(Nsc(      a().next() + b)sc(      next(a()) + b)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRI�scCs d}d}|j||�dS(NsU
            for a in b:
                foo(a)
                a.next()
            sT
            for a in b:
                foo(a)
                next(a)
            (R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_prefix_preservation_1�scCs d}d}|j||�dS(Nsq
            for a in b:
                foo(a) # abc
                # def
                a.next()
            sp
            for a in b:
                foo(a) # abc
                # def
                next(a)
            (R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_prefix_preservation_2�scCs&d}d}|j||dt�dS(Nsj
            next = 5
            for a in b:
                foo(a)
                a.next()
            sn
            next = 5
            for a in b:
                foo(a)
                a.__next__()
            R (R!R((RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_prefix_preservation_3�scCs&d}d}|j||dt�dS(Ns�
            next = 5
            for a in b:
                foo(a) # abc
                # def
                a.next()
            s�
            next = 5
            for a in b:
                foo(a) # abc
                # def
                a.__next__()
            R (R!R((RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_prefix_preservation_4�scCs&d}d}|j||dt�dS(Nsz
            next = 5
            for a in b:
                foo(foo(a), # abc
                    a.next())
            s~
            next = 5
            for a in b:
                foo(foo(a), # abc
                    a.__next__())
            R (R!R((RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_prefix_preservation_5�scCs d}d}|j||�dS(Nse
            for a in b:
                foo(foo(a), # abc
                    a.next())
            sd
            for a in b:
                foo(foo(a), # abc
                    next(a))
            (R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_prefix_preservation_6�scCs d}d}|j||�dS(Ns[
            class A:
                def next(self):
                    pass
            s_
            class A:
                def __next__(self):
                    pass
            (R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt
test_method_1�scCs d}d}|j||�dS(Nsc
            class A(object):
                def next(self):
                    pass
            sg
            class A(object):
                def __next__(self):
                    pass
            (R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt
test_method_2�scCs d}d}|j||�dS(NsX
            class A:
                def next(x):
                    pass
            s\
            class A:
                def __next__(x):
                    pass
            (R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt
test_method_3�scCs d}d}|j||�dS(Ns�
            class A:
                def __init__(self, foo):
                    self.foo = foo

                def next(self):
                    pass

                def __iter__(self):
                    return self
            s�
            class A:
                def __init__(self, foo):
                    self.foo = foo

                def __next__(self):
                    pass

                def __iter__(self):
                    return self
            (R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt
test_method_4	scCsd}|j|�dS(Nsa
            class A:
                def next(self, a, b):
                    pass
            (R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_method_unchanged	scCsd}|j|d�dS(Nsy
            next = foo

            class A:
                def next(self, a, b):
                    pass
            s)Calls to builtin next() possibly shadowed(R)(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_shadowing_assign_simple%	scCsd}|j|d�dS(Ns~
            (next, a) = foo

            class A:
                def next(self, a, b):
                    pass
            s)Calls to builtin next() possibly shadowed(R)(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_shadowing_assign_tuple_1/	scCsd}|j|d�dS(Ns�
            (a, (b, (next, c)), a) = foo

            class A:
                def next(self, a, b):
                    pass
            s)Calls to builtin next() possibly shadowed(R)(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_shadowing_assign_tuple_29	scCsd}|j|d�dS(Ns~
            [next, a] = foo

            class A:
                def next(self, a, b):
                    pass
            s)Calls to builtin next() possibly shadowed(R)(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_shadowing_assign_list_1C	scCsd}|j|d�dS(Ns�
            [a, [b, [next, c]], a] = foo

            class A:
                def next(self, a, b):
                    pass
            s)Calls to builtin next() possibly shadowed(R)(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_shadowing_assign_list_2M	scCsd}|j|d�dS(Ns�
            def foo():
                __builtin__.next = foo

            class A:
                def next(self, a, b):
                    pass
            s)Calls to builtin next() possibly shadowed(R)(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_builtin_assignW	scCsd}|j|d�dS(Ns�
            def foo():
                (a, __builtin__.next) = foo

            class A:
                def next(self, a, b):
                    pass
            s)Calls to builtin next() possibly shadowed(R)(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_builtin_assign_in_tupleb	scCsd}|j|d�dS(Ns�
            def foo():
                [a, __builtin__.next] = foo

            class A:
                def next(self, a, b):
                    pass
            s)Calls to builtin next() possibly shadowed(R)(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_builtin_assign_in_listm	scCsd}|j|�dS(Ns�
            def foo():
                A.next = foo

            class A:
                def next(self, a, b):
                    pass
            (R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_assign_to_nextx	scCsd}|j|�dS(Ns�
            def foo():
                (a, A.next) = foo

            class A:
                def next(self, a, b):
                    pass
            (R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_assign_to_next_in_tuple�	scCsd}|j|�dS(Ns�
            def foo():
                [a, A.next] = foo

            class A:
                def next(self, a, b):
                    pass
            (R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_assign_to_next_in_list�	scCsd}|j|d�dS(Ns�
            import foo.bar as next

            class A:
                def next(self, a, b):
                    pass
            s)Calls to builtin next() possibly shadowed(R)(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_shadowing_import_1�	scCsd}|j|d�dS(Ns�
            import bar, bar.foo as next

            class A:
                def next(self, a, b):
                    pass
            s)Calls to builtin next() possibly shadowed(R)(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_shadowing_import_2�	scCsd}|j|d�dS(Ns�
            import bar, bar.foo as next, baz

            class A:
                def next(self, a, b):
                    pass
            s)Calls to builtin next() possibly shadowed(R)(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_shadowing_import_3�	scCsd}|j|d�dS(Ns�
            from x import next

            class A:
                def next(self, a, b):
                    pass
            s)Calls to builtin next() possibly shadowed(R)(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_shadowing_import_from_1�	scCsd}|j|d�dS(Ns�
            from x.a import next

            class A:
                def next(self, a, b):
                    pass
            s)Calls to builtin next() possibly shadowed(R)(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_shadowing_import_from_2�	scCsd}|j|d�dS(Ns�
            from x import a, next, b

            class A:
                def next(self, a, b):
                    pass
            s)Calls to builtin next() possibly shadowed(R)(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_shadowing_import_from_3�	scCsd}|j|d�dS(Ns�
            from x.a import a, next, b

            class A:
                def next(self, a, b):
                    pass
            s)Calls to builtin next() possibly shadowed(R)(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_shadowing_import_from_4�	scCsd}|j|d�dS(Ns�
            def next(a):
                pass

            class A:
                def next(self, a, b):
                    pass
            s)Calls to builtin next() possibly shadowed(R)(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_shadowing_funcdef_1�	scCs#d}d}|j||d�dS(Ns�
            def next(a):
                pass

            class A:
                def next(self):
                    pass

            it.next()
            s�
            def next(a):
                pass

            class A:
                def __next__(self):
                    pass

            it.__next__()
            s)Calls to builtin next() possibly shadowed(R'(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_shadowing_funcdef_2�	s

cCsd}|j|d�dS(NsW
            def f():
                global next
                next = 5
            s)Calls to builtin next() possibly shadowed(R)(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_shadowing_global_1
scCsd}|j|d�dS(Ns]
            def f():
                global a, next, b
                next = 5
            s)Calls to builtin next() possibly shadowed(R)(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_shadowing_global_2	
scCsd}|j|d�dS(Nse
            for next in it():
                pass

            b = 5
            c = 6
            s)Calls to builtin next() possibly shadowed(R)(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_shadowing_for_simple
scCsd}|j|d�dS(Nsh
            for next, b in it():
                pass

            b = 5
            c = 6
            s)Calls to builtin next() possibly shadowed(R)(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_shadowing_for_tuple_1
scCsd}|j|d�dS(Nsp
            for a, (next, c), b in it():
                pass

            b = 5
            c = 6
            s)Calls to builtin next() possibly shadowed(R)(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_shadowing_for_tuple_2%
scCs d}d}|j||�dS(Nsgnext = g.nextsgnext = g.__next__(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_noncall_access_1/
scCs d}d}|j||�dS(Ns
f(g.next + 5)sf(g.__next__ + 5)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_noncall_access_24
scCs d}d}|j||�dS(Nsf(g().next + 5)sf(g().__next__ + 5)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_noncall_access_39
s(0R9R.R
RDRERFRGRHRIR@RARBRCRDRERFRGRHRIRJRKRLRMRNRORPRQRRRSRTRURVRWRXRYRZR[R\R]R^R_R`RaRbRcRdReRf(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR>ds\							
					
	
	
	
			
	
	
	
	
							
	
	
	
	
	
	
					
	
	
		tTest_nonzerocBs;eZdZd�Zd�Zd�Zd�Zd�ZRS(tnonzerocCs d}d}|j||�dS(Nsb
            class A:
                def __nonzero__(self):
                    pass
            s_
            class A:
                def __bool__(self):
                    pass
            (R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRDA
scCs d}d}|j||�dS(Nsj
            class A(object):
                def __nonzero__(self):
                    pass
            sg
            class A(object):
                def __bool__(self):
                    pass
            (R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyREN
scCsd}|j|�dS(Nsg
            class A(object):
                def __bool__(self):
                    pass
            (R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRZ[
scCsd}|j|�dS(Nsm
            class A(object):
                def __nonzero__(self, a):
                    pass
            (R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR[c
scCsd}|j|�dS(NsE
            def __nonzero__(self):
                pass
            (R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged_funck
s(R9R.R
RDRERZR[Ri(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRg>
s	
	
		tTest_numliteralscBs�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�ZRS(tnumliteralscCs d}d}|j||�dS(Nt0755t0o755(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_octal_1u
scCs d}d}|j||�dS(Nsa = 12Lsa = 12(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_long_int_1z
scCs d}d}|j||�dS(Nsa = 12lsa = 12(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_long_int_2
scCs d}d}|j||�dS(Ns	b = 0x12lsb = 0x12(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt
test_long_hex�
scCs<d}d}|j||�d}d}|j||�dS(Nsb =   0x12Ls
b =   0x12sb = 0755 # spamsb = 0o755 # spam(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_comments_and_spacing�
scCsd}|j|�dS(Nt5(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged_int�
scCsd}|j|�dS(Ns5.0(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged_float�
scCsd}|j|�dS(NRm(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged_octal�
scCsd}|j|�dS(Nt0xABC(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged_hex�
scCsd}|j|�dS(Ns5.0e10(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged_exp�
scCsd}|j|�dS(Ns5 + 4j(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged_complex_int�
scCsd}|j|�dS(Ns
5.4 + 4.9j(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged_complex_float�
scCs*d}|j|�d}|j|�dS(Nt4js4.4j(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged_complex_bare�
s
(R9R.R
RnRoRpRqRrRtRuRvRxRyRzR{R}(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRjr
s													tTest_renamescBs?eZdZidd6Zd�Zd�Zd�Zd�ZRS(	trenamestmaxinttmaxsizetsyscCsqxj|jj�D]Y\}\}}d||f}d||f}|j||�d|}|j|�qWdS(Nsfrom %s import %ssfrom foo import %s(R�R�R!R&(RtmodR�RR=R>RY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�
s"
cCsZxS|jj�D]B\}\}}d||f}d||f}|j||�qWdS(Nsfrom %s import %s as foo_bar(R�R�R!(RR�R�RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�
s"cCsfx_|jj�D]N\}\}}d||||f}d||||f}|j||�qWdS(NsJ
                import %s
                foo(%s, %s.%s)
                (R�R�R!(RR�R�RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�
s"cCsfx_|jj�D]N\}\}}d||||f}d||||f}|j||�qWdS(NsO
                from %s import %s
                foo(%s, %s)
                (R�R�R!(RR�R�RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pytXXX_test_from_import_usage�
s"(smaxintsmaxsize(R9R.R
R�RRRR�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR~�
s
				tTest_unicodecBsheZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�ZRS(RcCsXd}d}|j||�d}d}|j||�d}d}|j||�dS(Nsunicode( x)sstr( x)s unicode(x )s str(x )s u'h's 'h'(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_whitespace�
scCs d}d}|j||�dS(Nsunicode(x, y, z)sstr(x, y, z)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unicode_call�
scCs d}d}|j||�dS(Nsunichr(u'h')schr('h')(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unichr�
scCs d}d}|j||�dS(Nsu"x"s"x"(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unicode_literal_1�
scCs d}d}|j||�dS(Nsur'x'sr'x'(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unicode_literal_2scCs d}d}|j||�dS(Ns
UR'''x''' s	R'''x''' (R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unicode_literal_3scCs<d}d}|j||�d}d}|j||�dS(Ns'\\\u20ac\U0001d121\\u20ac's'\\\\u20ac\\U0001d121\\u20ac'sr'\\\u20ac\U0001d121\\u20ac'(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_native_literal_escape_uscCs<d}d}|j||�d}d}|j||�dS(Nsb'\\\u20ac\U0001d121\\u20ac'sbr'\\\u20ac\U0001d121\\u20ac'(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_bytes_literal_escape_uscCs<d}d}|j||�d}d}|j||�dS(Nsu'\\\u20ac\U0001d121\\u20ac's'\\\u20ac\U0001d121\\u20ac'sur'\\\u20ac\U0001d121\\u20ac'sr'\\\u20ac\U0001d121\\u20ac'(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unicode_literal_escape_uscCsRd}|d}|d}|j||�|d}|d}|j||�dS(Ns(from __future__ import unicode_literals
s'\\\u20ac\U0001d121\\u20ac'sr'\\\u20ac\U0001d121\\u20ac'(R!(RtfR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt$test_native_unicode_literal_escape_u&s



(
R9R.R
R�R�R�R�R�R�R�R�R�R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR��
s	
											t
Test_callablecBs2eZdZd�Zd�Zd�Zd�ZRS(tcallablecCs<d}d}|j||�d}d}|j||�dS(Nscallable(    x)s:import collections
isinstance(    x, collections.Callable)sif     callable(x): passsCimport collections
if     isinstance(x, collections.Callable): pass(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRg3scCs d}d}|j||�dS(Nscallable(x)s6import collections
isinstance(x, collections.Callable)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_callable_call=scCs�dd}dd}|j||�dd}|j||�dd}dd}|j||�dd}dd}|j||�d	d}d
d}|j||�dS(Ns!
def spam(foo):
    callable(foo)isL
import collections
def spam(foo):
    isinstance(foo, collections.Callable)s4
import collections
def spam(foo):
    callable(foo)s;
from collections import *
def spam(foo):
    callable(foo)sf
from collections import *
import collections
def spam(foo):
    isinstance(foo, collections.Callable)s;
do_stuff()
do_some_other_stuff()
assert callable(do_stuff)sf
import collections
do_stuff()
do_some_other_stuff()
assert isinstance(do_stuff, collections.Callable)s�
if isinstance(do_stuff, Callable):
    assert callable(do_stuff)
    do_stuff(do_stuff)
    if not callable(do_stuff):
        exit(1)
    else:
        assert callable(do_stuff)
else:
    assert not callable(do_stuff)sN
import collections
if isinstance(do_stuff, Callable):
    assert isinstance(do_stuff, collections.Callable)
    do_stuff(do_stuff)
    if not isinstance(do_stuff, collections.Callable):
        exit(1)
    else:
        assert isinstance(do_stuff, collections.Callable)
else:
    assert not isinstance(do_stuff, collections.Callable)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_global_importBs








cCsPd}|j|�d}|j|�d}|j|�d}|j|�dS(Nscallable(*x)scallable(x, y)scallable(x, kw=y)s
callable()(R&(RR>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_callable_should_not_change�s


(R9R.R
RgR�R�R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�0s
	
		>tTest_filtercBs2eZdZd�Zd�Zd�Zd�ZRS(tfiltercCs<d}d}|j||�d}d}|j||�dS(Ns#x =   filter(    foo,     'abc'   )s)x =   list(filter(    foo,     'abc'   ))sx =   filter(  None , 'abc'  )s x =   [_f for _f in 'abc' if _f](R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRg�scCstd}d}|j||�d}d}|j||�d}d}|j||�d}d}|j||�dS(Nsx = filter(None, 'abc')sx = [_f for _f in 'abc' if _f]sx = len(filter(f, 'abc'))sx = len(list(filter(f, 'abc')))s)x = filter(lambda x: x%2 == 0, range(10))s&x = [x for x in range(10) if x%2 == 0]s+x = filter(lambda (x): x%2 == 0, range(10))(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_filter_basic�scCsmd}|j|�d}|j|�d}|j|�d}|j|�d}|j|�d}|j|�d}|j|�d}|j|�d	}|j|�d
}|j|�d}|j|�d}|j|�d
}|j|�d}|j|�d}|j|�d}|j|�d}|j|�d}|j|�d}|j|�dS(Nsb.join(filter(f, 'abc'))s#(a + foo(5)).join(filter(f, 'abc'))siter(filter(f, 'abc'))slist(filter(f, 'abc'))slist(filter(f, 'abc'))[0]sset(filter(f, 'abc'))sset(filter(f, 'abc')).pop()stuple(filter(f, 'abc'))sany(filter(f, 'abc'))sall(filter(f, 'abc'))ssum(filter(f, 'abc'))ssorted(filter(f, 'abc'))s"sorted(filter(f, 'abc'), key=blah)s%sorted(filter(f, 'abc'), key=blah)[0]senumerate(filter(f, 'abc'))s$enumerate(filter(f, 'abc'), start=1)sfor i in filter(f, 'abc'): passs[x for x in filter(f, 'abc')]s(x for x in filter(f, 'abc'))(R&(RR>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_filter_nochange�sL

















cCsFd}|j|�d}d}|j||�d}|j|�dS(Ns:from future_builtins import spam, filter; filter(f, 'ham')s6from future_builtins import spam; x = filter(f, 'abc')s<from future_builtins import spam; x = list(filter(f, 'abc'))s/from future_builtins import *; filter(f, 'ham')(R&R!(RR>R=((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_future_builtins�s
(R9R.R
RgR�R�R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR��s
				(tTest_mapcBsMeZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	RS(RcCs1|jd||�tt|�j||�dS(Ns!from future_builtins import map; (R&R�R�R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR!�scCs d}d}|j||�dS(Nsx =    map(   f,    'abc'   )s#x =    list(map(   f,    'abc'   ))(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRg�scCs d}d}|j||�dS(Nsx = map(f, 'abc')   #   foos!x = list(map(f, 'abc'))   #   foo(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR��scCsd}|j|d�dS(Nsx = map(None, a, b, c)s5cannot convert map(None, ...) with multiple arguments(R)(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt!test_None_with_multiple_arguments�scCs�d}d}|j||�d}d}|j||�d}d}|j||�d}d}|j||�d	}d}|j||�d
}d}|j||d�dS(
Nsx = map(f, 'abc')sx = list(map(f, 'abc'))sx = len(map(f, 'abc', 'def'))s#x = len(list(map(f, 'abc', 'def')))sx = map(None, 'abc')sx = list('abc')s x = map(lambda x: x+1, range(4))sx = [x+1 for x in range(4)]s"x = map(lambda (x): x+1, range(4))sG
            foo()
            # foo
            map(f, x)
            sM
            foo()
            # foo
            list(map(f, x))
            sYou should use a for loop here(R!R'(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_map_basic�s$cCsmd}|j|�d}|j|�d}|j|�d}|j|�d}|j|�d}|j|�d}|j|�d}|j|�d	}|j|�d
}|j|�d}|j|�d}|j|�d
}|j|�d}|j|�d}|j|�d}|j|�d}|j|�d}|j|�d}|j|�dS(Nsb.join(map(f, 'abc'))s (a + foo(5)).join(map(f, 'abc'))siter(map(f, 'abc'))slist(map(f, 'abc'))slist(map(f, 'abc'))[0]sset(map(f, 'abc'))sset(map(f, 'abc')).pop()stuple(map(f, 'abc'))sany(map(f, 'abc'))sall(map(f, 'abc'))ssum(map(f, 'abc'))ssorted(map(f, 'abc'))ssorted(map(f, 'abc'), key=blah)s"sorted(map(f, 'abc'), key=blah)[0]senumerate(map(f, 'abc'))s!enumerate(map(f, 'abc'), start=1)sfor i in map(f, 'abc'): passs[x for x in map(f, 'abc')]s(x for x in map(f, 'abc'))(R&(RR>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_map_nochange sL

















cCsFd}|j|�d}d}|j||�d}|j|�dS(Ns:from future_builtins import spam, map, eggs; map(f, 'ham')s9from future_builtins import spam, eggs; x = map(f, 'abc')s?from future_builtins import spam, eggs; x = list(map(f, 'abc'))s,from future_builtins import *; map(f, 'ham')(R&R!(RR>R=((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�Hs
(
R9R.R
R!RgR�R�R�R�R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR��s					'	(tTest_zipcBs2eZdZd�Zd�Zd�Zd�ZRS(tzipcCs1|jd||�tt|�j||�dS(Ns!from future_builtins import zip; (R&R�R�R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR!VscCs<d}d}|j||�d}d}|j||�dS(Nsx = zip(a, b, c)sx = list(zip(a, b, c))sx = len(zip(a, b))sx = len(list(zip(a, b)))(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_zip_basicZscCsmd}|j|�d}|j|�d}|j|�d}|j|�d}|j|�d}|j|�d}|j|�d}|j|�d	}|j|�d
}|j|�d}|j|�d}|j|�d
}|j|�d}|j|�d}|j|�d}|j|�d}|j|�d}|j|�d}|j|�dS(Nsb.join(zip(a, b))s(a + foo(5)).join(zip(a, b))siter(zip(a, b))slist(zip(a, b))slist(zip(a, b))[0]sset(zip(a, b))sset(zip(a, b)).pop()stuple(zip(a, b))sany(zip(a, b))sall(zip(a, b))ssum(zip(a, b))ssorted(zip(a, b))ssorted(zip(a, b), key=blah)ssorted(zip(a, b), key=blah)[0]senumerate(zip(a, b))senumerate(zip(a, b), start=1)sfor i in zip(a, b): passs[x for x in zip(a, b)]s(x for x in zip(a, b))(R&(RR>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_zip_nochangecsL

















cCsFd}|j|�d}d}|j||�d}|j|�dS(Ns6from future_builtins import spam, zip, eggs; zip(a, b)s5from future_builtins import spam, eggs; x = zip(a, b)s;from future_builtins import spam, eggs; x = list(zip(a, b))s(from future_builtins import *; zip(a, b)(R&R!(RR>R=((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR��s
(R9R.R
R!R�R�R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�Ss
				(tTest_standarderrorcBseZdZd�ZRS(t
standarderrorcCsXd}d}|j||�d}d}|j||�d}d}|j||�dS(Nsx =    StandardError()sx =    Exception()sx = StandardError(a, b, c)sx = Exception(a, b, c)sf(2 + StandardError(a, b, c))sf(2 + Exception(a, b, c))(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRh�s(R9R.R
Rh(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR��st
Test_typescBseZdZd�ZRS(ttypescCs�d}d}|j||�d}d}|j||�d}d}|j||�d}d}|j||�d	}d}|j||�d
}d}|j||�d}d
}|j||�dS(Nstypes.StringTypetbytesstypes.DictTypeR�stypes . IntTypetintstypes.ListTypetliststypes.LongTypestypes.NoneTypes
type(None)stypes.StringTypess(str,)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_basic_types_convert�s*(R9R.R
R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR��stTest_idiomscBs�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zd�ZRS(tidiomscCsXd}d}|j||�d}d}|j||�d}d}|j||�dS(Nswhile 1: foo()swhile True: foo()swhile   1: foo()swhile   True: foo()s8
            while 1:
                foo()
            s;
            while True:
                foo()
            (R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt
test_while�scCsPd}|j|�d}|j|�d}|j|�d}|j|�dS(Nswhile 11: foo()swhile 0: foo()swhile foo(): foo()swhile []: foo()(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_while_unchanged�s


cCs<d}d}|j||�d}d}|j||�dS(Nstype(x) == Tsisinstance(x, T)sif   type(x) == T: passsif   isinstance(x, T): pass(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_eq_simple�scCs<d}d}|j||�d}d}|j||�dS(NsT == type(x)sisinstance(x, T)sif   T == type(x): passsif   isinstance(x, T): pass(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_eq_reverse�scCs<d}d}|j||�d}d}|j||�dS(Nstype(x+y) == d.get('T')sisinstance(x+y, d.get('T'))stype(   x  +  y) == d.get('T')sisinstance(x  +  y, d.get('T'))(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_eq_expression�scCs<d}d}|j||�d}d}|j||�dS(Nstype(x) is Tsisinstance(x, T)sif   type(x) is T: passsif   isinstance(x, T): pass(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_is_simple
scCs<d}d}|j||�d}d}|j||�dS(NsT is type(x)sisinstance(x, T)sif   T is type(x): passsif   isinstance(x, T): pass(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_is_reverse

scCs<d}d}|j||�d}d}|j||�dS(Nstype(x+y) is d.get('T')sisinstance(x+y, d.get('T'))stype(   x  +  y) is d.get('T')sisinstance(x  +  y, d.get('T'))(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_is_expression
scCs<d}d}|j||�d}d}|j||�dS(Nstype(x) is not Tsnot isinstance(x, T)sif   type(x) is not T: passsif   not isinstance(x, T): pass(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_is_not_simple
scCs<d}d}|j||�d}d}|j||�dS(NsT is not type(x)snot isinstance(x, T)sif   T is not type(x): passsif   not isinstance(x, T): pass(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_is_not_reverse(
scCs<d}d}|j||�d}d}|j||�dS(Nstype(x+y) is not d.get('T')snot isinstance(x+y, d.get('T'))s"type(   x  +  y) is not d.get('T')s#not isinstance(x  +  y, d.get('T'))(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_is_not_expression1
scCs<d}d}|j||�d}d}|j||�dS(Nstype(x) != Tsnot isinstance(x, T)sif   type(x) != T: passsif   not isinstance(x, T): pass(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_ne_simple:
scCs<d}d}|j||�d}d}|j||�dS(NsT != type(x)snot isinstance(x, T)sif   T != type(x): passsif   not isinstance(x, T): pass(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_ne_reverseC
scCs<d}d}|j||�d}d}|j||�dS(Nstype(x+y) != d.get('T')snot isinstance(x+y, d.get('T'))stype(   x  +  y) != d.get('T')s#not isinstance(x  +  y, d.get('T'))(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_ne_expressionL
scCsd}|j|�dS(Nstype(x).__name__(R&(RR>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_type_unchangedU
scCs�d}d}|j||�d}d}|j||�d}d}|j||�d}d}|j||�d	}d
}|j||�d}d}|j||�d
}d}|j||�d}d}|j||�dS(NsM
            v = list(t)
            v.sort()
            foo(v)
            s:
            v = sorted(t)
            foo(v)
            sV
            v = list(foo(b) + d)
            v.sort()
            foo(v)
            sC
            v = sorted(foo(b) + d)
            foo(v)
            sn
            while x:
                v = list(t)
                v.sort()
                foo(v)
            sW
            while x:
                v = sorted(t)
                foo(v)
            s_
            v = list(t)
            # foo
            v.sort()
            foo(v)
            sL
            v = sorted(t)
            # foo
            foo(v)
            sP
            v = list(   t)
            v.sort()
            foo(v)
            s=
            v = sorted(   t)
            foo(v)
            sl
            try:
                m = list(s)
                m.sort()
            except: pass
            sU
            try:
                m = sorted(s)
            except: pass
            s�
            try:
                m = list(s)
                # foo
                m.sort()
            except: pass
            sk
            try:
                m = sorted(s)
                # foo
            except: pass
            sI
            m = list(s)
            # more comments
            m.sort()s6
            m = sorted(s)
            # more comments(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_sort_list_callY
s0cCs�d}d}|j||�d}d}|j||�d}d}|j||�d}d}|j||�d	}d
}|j||�d}d}|j||�d
}d}|j||�dS(NsG
            v = t
            v.sort()
            foo(v)
            s:
            v = sorted(t)
            foo(v)
            sL
            v = foo(b)
            v.sort()
            foo(v)
            s?
            v = sorted(foo(b))
            foo(v)
            sN
            v = b.keys()
            v.sort()
            foo(v)
            sA
            v = sorted(b.keys())
            foo(v)
            sP
            v = foo(b) + d
            v.sort()
            foo(v)
            sC
            v = sorted(foo(b) + d)
            foo(v)
            sh
            while x:
                v = t
                v.sort()
                foo(v)
            sW
            while x:
                v = sorted(t)
                foo(v)
            sY
            v = t
            # foo
            v.sort()
            foo(v)
            sL
            v = sorted(t)
            # foo
            foo(v)
            sI
            v =   t
            v.sort()
            foo(v)
            s<
            v =   sorted(t)
            foo(v)
            (R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_sort_simple_expr�
s*cCs*d}|j|�d}|j|�dS(NsM
            v = list(t)
            w.sort()
            foo(w)
            sN
            v = list(t)
            v.sort(u)
            foo(v)
            (R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_sort_unchangeds
(R9R.R
R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR��s&		
																										d	RtTest_basestringcBseZdZd�ZRS(t
basestringcCs d}d}|j||�dS(Nsisinstance(x, basestring)sisinstance(x, str)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_basestring!s(R9R.R
R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�stTest_buffercBs eZdZd�Zd�ZRS(tbuffercCs d}d}|j||�dS(Ns
x = buffer(y)sx = memoryview(y)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_buffer)scCs d}d}|j||�dS(Nsbuffer(y)[4:5]smemoryview(y)[4:5](R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_slicing.s(R9R.R
R�R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�&s	tTest_futurecBs eZdZd�Zd�ZRS(tfuturecCsXd}d}|j||�d}d}|j||�d}d}|j||�dS(Nsfrom __future__ import bracesR"s'# comment
from __future__ import bracess
# comment
s'from __future__ import braces
# comments

# comment(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_future6scCs|jd�dS(NRp(R8(R((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_run_orderCs(R9R.R
R�R�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�3s	
tTest_itertoolscBsVeZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
RS(	t	itertoolscCsRxKdD]C}x:dD]2}||d|}||}|j||�qWqWdS(	Ns
itertools.R"RR�R�ti(s
itertools.R"(smapsfilterszip(R!(RRRR�R�R=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pytcheckallIs



cCs d}d}|j||�dS(Nsitertools.izip(a, b)s	zip(a, b)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_0SscCs d}d}|j||�dS(Ns%s(f, a)(R�(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRDZscCs<d}d}|j||�d}d}|j||�dS(Nsitertools.ifilterfalse(a, b)sitertools.filterfalse(a, b)sitertools.izip_longest(a, b)sitertools.zip_longest(a, b)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_qualified_scCs<d}d}|j||�d}d}|j||�dS(Nsifilterfalse(a, b)sfilterfalse(a, b)sizip_longest(a, b)szip_longest(a, b)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyREhscCs d}d}|j||�dS(Ns    %s(f, a)(R�(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRcqscCs<d}d}|j||�d}d}|j||�dS(Ns     itertools.ifilterfalse(a, b)s    itertools.filterfalse(a, b)s     itertools.izip_longest(a, b)s    itertools.zip_longest(a, b)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRdvscCs|jddd�dS(NRR�R�(R8(R((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�s(R9R.R
R�R�RDR�RERcRdR�(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�Fs	
									tTest_itertools_importscBsMeZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	RS(titertools_importscCsXd}d}|j||�d}d}|j||�d}d}|j||�dS(Ns%from itertools import imap, izip, foosfrom itertools import foos*from itertools import bar, imap, izip, foosfrom itertools import bar, foos'from itertools import chain, imap, izipsfrom itertools import chain(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_reduced�scCs d}d}|j||�dS(Ns%#foo
from itertools import imap, izips#foo
(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt
test_comments�scCs<d}d}|j||�d}d}|j||�dS(Ns from itertools import imap, izipR"sfrom itertools import izip(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt	test_none�scCs�d}d}|j||�d}d}|j||�d}d}|j||�d}d}|j||�d}|j|�dS(Ns-from itertools import izip, bar as bang, imaps!from itertools import bar as bangs-from itertools import izip as _zip, imap, barsfrom itertools import bars"from itertools import imap as _mapR"s0from itertools import imap as _map, izip as _zip(R!R&(RR=R>RY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_import_as�scCs�x�d	D]�}d|f}d|f}|j||�d|f}d|f}|j||�d|f}d|f}|j||�qWdS(
Ntfilterfalsetzip_longestsfrom itertools import i%ssfrom itertools import %ss$from itertools import imap, i%s, foosfrom itertools import %s, foos#from itertools import bar, i%s, foos"from itertools import bar, %s, foo(R�R�(R!(RR�R=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_ifilter_and_zip_longest�s






cCsd}|j|�dS(Nsfrom itertools import *(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_import_star�scCsd}|j|�dS(Nsfrom itertools import foo(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRi�s(
R9R.R
R�R�R�R�R�R�Ri(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR��s	
						tTest_importcBs�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(Rcs]tt��j�g�_t��_t�_�fd�}ddlm	}||_
dS(Ncs&�jj|��jp%|�jkS(N(t
files_checkedR t
always_existst
present_files(R�(R(sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pytfake_exists�si����(t
fix_import(R�R�RR�tsetR�R(R�t
lib2to3.fixesR�texists(RR�R�((Rsr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�s		cCs#ddlm}tjj|_dS(Ni����(R�(R�R�tostpathR�(RR�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttearDown�scCsEt|_tt|�j||�t|_tt|�j|�dS(N(R(R�R�R�R!R:R&(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt
check_both�s		csd�}t|_tdg�|_dtjjddddf}|d�d	|d
�f}x�|D]��g|_�|_|j	d�tjj
��r�tjj
��d�nd
�t�fd�|D��}|jd�|jt|j�|�qdWdS(NcSstjjj|jd��S(Nt/(R�R�tpathsepR$tsplit(R�((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pytp�ss__init__.pys.pys.pycs.sos.sls.pyds
/spam/eggs.pysni.pys../../shrubbery.pys
import jams/jamtjamc3s|]}�|VqdS(N((t.0text(R�(sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pys	<genexpr>�s(
R:R�R�R�R�R�tsepR�R
R&tdirnametaddR(RR�texpected_extensionst
names_to_testtexpected_checks((R�sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_files_checked�s		
		

cCs2d}t|_tdg�|_|j|�dS(Ns
import barsbar.py(R:R�R�R�R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_not_in_packages	cCs5d}t|_tddg�|_|j|�dS(Ns1from __future__ import absolute_import
import bars__init__.pysbar.py(R:R�R�R�R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt!test_with_absolute_import_enableds	cCs>d}d}t|_tddg�|_|j||�dS(Ns
import barsfrom . import bars__init__.pysbar.py(R:R�R�R�R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_in_packages
	cCsHd}d}t|_tddtjjg�|_|j||�dS(Ns
import barsfrom . import bars__init__.pytbar(R:R�R�R�R�R�R�R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_import_from_packages
	cCsd}|j|�dS(Nsfrom . import bar(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_already_relative_importscCs d}d}|j||�dS(Nsimport bar # Foosfrom . import bar # Foo(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_comments_and_indentscCsXd}d}|j||�d}d}|j||�d}d}|j||�dS(Nsfrom foo import bar, bazsfrom .foo import bar, bazsfrom foo import barsfrom .foo import barsfrom foo import (bar, baz)sfrom .foo import (bar, baz)(R�(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt	test_from#scCs d}d}|j||�dS(Nsfrom green.eggs import hamsfrom .green.eggs import ham(R�(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_dotted_from0scCs d}d}|j||�dS(Ns"from green.eggs import ham as spams#from .green.eggs import ham as spam(R�(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_from_as5scCstd}d}|j||�d}d}|j||�d}d}|j||�d}d}|j||�dS(	Ns
import foosfrom . import foosimport foo, barsfrom . import foo, barsimport foo, bar, xsfrom . import foo, bar, xsimport x, y, zsfrom . import x, y, z(R�(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_import:scCs<d}d}|j||�d}d}|j||�dS(Nsimport foo as xsfrom . import foo as xsimport a as b, b as c, c as ds$from . import a as b, b as c, c as d(R�(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�KscCs8t|_tddg�|_d}|j|d�dS(Nsfoo.pys__init__.pysimport foo, bars#absolute and local imports together(R:R�R�R�R)(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_local_and_absoluteTs	cCs d}d}|j||�dS(Nsimport foo.barsfrom . import foo.bar(R�(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_dotted_import[scCs d}d}|j||�dS(Nsimport foo.bar as bangsfrom . import foo.bar as bang(R�(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_dotted_import_as`scCs d}d}|j||�dS(Ns1
        # prefix
        import foo.bar
        s8
        # prefix
        from . import foo.bar
        (R�(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_prefixes(R9R.R
RR�R�R�R�R�R�R�R�R�R�R�R�R�R�RRRR(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR��s(											
								tTest_set_literalcBs;eZdZd�Zd�Zd�Zd�Zd�ZRS(tset_literalcCs�d}d}|j||�d}d}|j||�d}d}|j||�d}|j||�d}d}|j||�d	}|j||�d
}d}|j||�d}d
}|j||�d}d}|j||�dS(Nsset([1, 2, 3])s	{1, 2, 3}sset((1, 2, 3))s	set((1,))s{1}sset([1])sset((a, b))s{a, b}sset([a, b])sset((a*234, f(args=23)))s{a*234, f(args=23)}sset([a*23, f(23)])s
{a*23, f(23)}sset([a-234**23])s{a-234**23}(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR?us2cCstd}d}|j||�d}d}|j||�d}d}|j||�d}d}|j||�dS(	Nsset([x for x in y])s{x for x in y}sset([x for x in y if x == m])s{x for x in y if x == m}sset([x for x in y for a in b])s{x for x in y for a in b}sset([f(x) - 23 for x in y])s{f(x) - 23 for x in y}(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_listcomps�scCs�d}d}|j||�d}d}|j||�d}d}|j||�d}d}|j||�d	}d
}|j||�d}d}|j||�d
}d}|j||�dS(Nsset( [1, 2])s{1, 2}s
set([1 ,  2])s{1 ,  2}s
set([ 1 ])s{ 1 }s
set( [1] )s{1}sset([  1,  2  ])s{  1,  2  }sset([x  for x in y ])s{x  for x in y }s<set(
                   [1, 2]
               )
            s{1, 2}
(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR��s*cCs<d}d}|j||�d}d}|j||�dS(Nsset((1, 2)) # His{1, 2} # HisZ
            # Foo
            set( # Bar
               (1, 2)
            )
            s2
            # Foo
            {1, 2}
            (R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR��scCsvd}|j|�d}|j|�d}|j|�d}|j|�d}|j|�d}|j|�dS(Nsset()sset(a)sset(a, b, c)sset(x for x in y)sset(x for x in y if z)sset(a*823-23**2 + f(23))(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRi�s




(R9R.R
R?RR�R�Ri(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRqs	#		 	tTest_sys_exccBsDeZdZd�Zd�Zd�Zd�Zd�Zd�ZRS(tsys_exccCs d}d}|j||�dS(Nssys.exc_typessys.exc_info()[0](R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR��scCs d}d}|j||�dS(Ns
sys.exc_valuessys.exc_info()[1](R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRD�scCs d}d}|j||�dS(Nssys.exc_tracebackssys.exc_info()[2](R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRE�scCs d}d}|j||�dS(Nssys.exc_type # Foossys.exc_info()[0] # Foo(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRFscCs d}d}|j||�dS(Nssys.  exc_typessys.  exc_info()[0](R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRGscCs d}d}|j||�dS(Nssys  .exc_typessys  .exc_info()[0](R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRHs(	R9R.R
R�RDRERFRGRH(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�s					t
Test_parencBszeZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�ZRS(
tparencCs d}d}|j||�dS(Ns[i for i in 1, 2 ]s[i for i in (1, 2) ](R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�scCs d}d}|j||�dS(Ns[i for i in 1, 2, ]s[i for i in (1, 2,) ](R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRDscCs d}d}|j||�dS(Ns[i for i  in     1, 2 ]s[i for i  in     (1, 2) ](R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyREscCs d}d}|j||�dS(Ns[i for i in 1, 2 if i]s[i for i in (1, 2) if i](R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRF$scCs d}d}|j||�dS(Ns[i for i in 1,    2    ]s[i for i in (1,    2)    ](R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRG)scCs d}d}|j||�dS(Ns(i for i in 1, 2)s(i for i in (1, 2))(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRH.scCs d}d}|j||�dS(Ns(i for i in 1   ,2   if i)s(i for i in (1   ,2)   if i)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRI3scCsd}|j|�dS(Ns[i for i in (1, 2)](R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged_08scCsd}|j|�dS(Ns[i for i in foo()](R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRZ<scCsd}|j|�dS(Ns[i for i in (1, 2) if nothing](R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR[@scCsd}|j|�dS(Ns(i for i in (1, 2))(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR\DscCsd}|j|�dS(Ns[i for i in m](R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR]Hs(R9R.R
R�RDRERFRGRHRIRRZR[R\R](((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR	s											tTest_metaclasscBs)eZdZd�Zd�Zd�ZRS(t	metaclasscCs�|jd�|jd�|jd�|jd�|jd�|jd�|jd�d}|j|�d	}|j|�dS(
Nsclass X(): passsclass X(object): passsclass X(object1, object2): passs(class X(object1, object2, object3): passsclass X(metaclass=Meta): passs'class X(b, arg=23, metclass=Meta): passs2class X(b, arg=23, metaclass=Meta, other=42): passsD
        class X:
            def __metaclass__(self): pass
        s1
        class X:
            a[23] = 74
        (R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRiPs







cCs<d}d}|j||�d}d}|j||�dS(NsQ
        class X:
            # hi
            __metaclass__ = AppleMeta
        sQ
        class X(metaclass=AppleMeta):
            # hi
            pass
        sR
        class X:
            __metaclass__ = Meta
            # Bedtime!
        sR
        class X(metaclass=Meta):
            pass
            # Bedtime!
        (R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�escCs8d}d}|j||�d}d}|j||�d}d}|j||�d}d}|j||�d	}d}|j||�d
}d}|j||�d}d
}|j||�d}d}|j||�d}d}|j||�d}d}|j||�d}d}|j||�dS(NsK
        class X():
            __metaclass__ = Q
            pass
        s8
        class X(metaclass=Q):
            pass
        s"class X(object): __metaclass__ = Qs"class X(object, metaclass=Q): passsW
        class X(object):
            __metaclass__ = Meta
            bar = 7
        sF
        class X(object, metaclass=Meta):
            bar = 7
        sJ
        class X:
            __metaclass__ = Meta; x = 4; g = 23
        sD
        class X(metaclass=Meta):
            x = 4; g = 23
        sW
        class X(object):
            bar = 7
            __metaclass__ = Meta
        sl
        class X():
            __metaclass__ = A
            __metaclass__ = B
            bar = 7
        s;
        class X(metaclass=B):
            bar = 7
        s[
        class X(clsA, clsB):
            __metaclass__ = Meta
            bar = 7
        sJ
        class X(clsA, clsB, metaclass=Meta):
            bar = 7
        s(class m(a, arg=23): __metaclass__ = Metas(class m(a, arg=23, metaclass=Meta): passsN
        class X(expression(2 + 4)):
            __metaclass__ = Meta
        sN
        class X(expression(2 + 4), metaclass=Meta):
            pass
        sT
        class X(expression(2 + 4), x**4):
            __metaclass__ = Meta
        sT
        class X(expression(2 + 4), x**4, metaclass=Meta):
            pass
        sT
        class X:
            __metaclass__ = Meta
            save.py = 23
        sC
        class X(metaclass=Meta):
            save.py = 23
        (R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt	test_meta~sB(R9R.R
RiR�R(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRLs		tTest_getcwducBs;eZdZd�Zd�Zd�Zd�Zd�ZRS(tgetcwducCstd}d}|j||�d}d}|j||�d}d}|j||�d}d}|j||�dS(	Ns
os.getcwdus	os.getcwdsos.getcwdu()sos.getcwd()smeth = os.getcwdusmeth = os.getcwdsos.getcwdu(args)sos.getcwd(args)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR?�scCs d}d}|j||�dS(Nsos.getcwdu() # Foosos.getcwd() # Foo(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_commentscCs=d}|j|�d}|j|�d}|j|�dS(Nsos.getcwd()s	getcwdu()sos.getcwdb()(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRis

cCs d}d}|j||�dS(Ns<
            if 1:
                os.getcwdu()
            s;
            if 1:
                os.getcwd()
            (R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_indentationscCsXd}d}|j||�d}d}|j||�d}d}|j||�dS(Ns
os .getcwdu()sos .getcwd()sos.  getcwdusos.  getcwdsos.getcwdu (  )sos.getcwd (  )(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_multilation s(R9R.R
R?RRiRR(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR�s			
	t
Test_operatorcBs�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�ZRS(toperatorcCs d}d}|j||�dS(Nsoperator.isCallable(x)shasattr(x, '__call__')(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_operator_isCallable2scCsXd}d}|j||�d}d}|j||�d}d}|j||�dS(Nsoperator.sequenceIncludes(x, y)soperator.contains(x, y)s operator .sequenceIncludes(x, y)soperator .contains(x, y)s!operator.  sequenceIncludes(x, y)soperator.  contains(x, y)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_operator_sequenceIncludes7scCs d}d}|j||�dS(Nsoperator.isSequenceType(x)s6import collections
isinstance(x, collections.Sequence)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_operator_isSequenceTypeDscCs d}d}|j||�dS(Nsoperator.isMappingType(x)s5import collections
isinstance(x, collections.Mapping)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_operator_isMappingTypeIscCs d}d}|j||�dS(Nsoperator.isNumberType(x)s,import numbers
isinstance(x, numbers.Number)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_operator_isNumberTypeNscCsXd}d}|j||�d}d}|j||�d}d}|j||�dS(Nsoperator.repeat(x, n)soperator.mul(x, n)soperator .repeat(x, n)soperator .mul(x, n)soperator.  repeat(x, n)soperator.  mul(x, n)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_operator_repeatSscCsXd}d}|j||�d}d}|j||�d}d}|j||�dS(Nsoperator.irepeat(x, n)soperator.imul(x, n)soperator .irepeat(x, n)soperator .imul(x, n)soperator.  irepeat(x, n)soperator.  imul(x, n)(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_operator_irepeat`scCs d}d}|j||�dS(Ns
isCallable(x)s-You should use 'hasattr(x, '__call__')' here.(R)(RRYtt((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_bare_isCallablemscCs d}d}|j||�dS(NssequenceIncludes(x, y)s.You should use 'operator.contains(x, y)' here.(R)(RRYR((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_bare_sequenceIncludesrscCs d}d}|j||�dS(NsisSequenceType(z)s:You should use 'isinstance(z, collections.Sequence)' here.(R)(RRYR((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt!test_bare_operator_isSequenceTypewscCs d}d}|j||�dS(NsisMappingType(x)s9You should use 'isinstance(x, collections.Mapping)' here.(R)(RRYR((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt test_bare_operator_isMappingType|scCs d}d}|j||�dS(NsisNumberType(y)s4You should use 'isinstance(y, numbers.Number)' here.(R)(RRYR((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_bare_operator_isNumberType�scCs d}d}|j||�dS(Nsrepeat(x, n)s)You should use 'operator.mul(x, n)' here.(R)(RRYR((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_bare_operator_repeat�scCs d}d}|j||�dS(Nsirepeat(y, 187)s,You should use 'operator.imul(y, 187)' here.(R)(RRYR((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_bare_operator_irepeat�s(R9R.R
RRRRRRRRRR R!R"R#R$(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR.s		
				
	
						t
Test_exitfunccBsMeZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	RS(texitfunccCs d}d}|j||�dS(NsI
            import sys
            sys.exitfunc = my_atexit
            se
            import sys
            import atexit
            atexit.register(my_atexit)
            (R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR��scCs d}d}|j||�dS(NsO
            import sys, crumbs
            sys.exitfunc = my_func
            sY
            import sys, crumbs, atexit
            atexit.register(my_func)
            (R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_names_import�scCs d}d}|j||�dS(Nsh
            import sys
            sys.exitfunc = do(d)/a()+complex(f=23, g=23)*expression
            s�
            import sys
            import atexit
            atexit.register(do(d)/a()+complex(f=23, g=23)*expression)
            (R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_complex_expression�scCs<d}d}|j||�d}d}|j||�dS(NsN
            import sys # Foo
            sys.exitfunc = f # Blah
            sj
            import sys
            import atexit # Foo
            atexit.register(f) # Blah
            so
            import apples, sys, crumbs, larry # Pleasant comments
            sys.exitfunc = func
            sy
            import apples, sys, crumbs, larry, atexit # Pleasant comments
            atexit.register(func)
            (R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR��scCs d}d}|j||�dS(Ns]
            import sys
            def f():
                sys.exitfunc = func
            sz
            import sys
            import atexit
            def f():
                atexit.register(func)
             (R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_in_a_function�scCs)d}d}d}|j|||�dS(Nssys.exitfunc = fsatexit.register(f)sKCan't find sys import; Please add an atexit import at the top of your file.(R'(RR=R>tmsg((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_no_sys_import�scCsd}|j|�dS(Nsf(sys.exitfunc)(R&(RRY((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRi�s(
R9R.R
R�R'R(R�R)R+Ri(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR%�s						tTest_assertscBs)eZdZd�Zd�Zd�ZRS(tassertsc
CsUddddddddddddg}x$|D]\}}|j||�q1WdS( Nsself.assert_(True)sself.assertTrue(True)sself.assertEquals(2, 2)sself.assertEqual(2, 2)sself.assertNotEquals(2, 3)sself.assertNotEqual(2, 3)sself.assertAlmostEquals(2, 3)sself.assertAlmostEqual(2, 3)s self.assertNotAlmostEquals(2, 8)sself.assertNotAlmostEqual(2, 8)sself.failUnlessEqual(2, 2)sself.failIfEqual(2, 3)s self.failUnlessAlmostEqual(2, 3)sself.failIfAlmostEqual(2, 8)sself.failUnless(True)sself.failUnlessRaises(foo)sself.assertRaises(foo)sself.failIf(False)sself.assertFalse(False)(sself.assert_(True)sself.assertTrue(True)(sself.assertEquals(2, 2)sself.assertEqual(2, 2)(sself.assertNotEquals(2, 3)sself.assertNotEqual(2, 3)(sself.assertAlmostEquals(2, 3)sself.assertAlmostEqual(2, 3)(s self.assertNotAlmostEquals(2, 8)sself.assertNotAlmostEqual(2, 8)(sself.failUnlessEqual(2, 2)sself.assertEqual(2, 2)(sself.failIfEqual(2, 3)sself.assertNotEqual(2, 3)(s self.failUnlessAlmostEqual(2, 3)sself.assertAlmostEqual(2, 3)(sself.failIfAlmostEqual(2, 8)sself.assertNotAlmostEqual(2, 8)(sself.failUnless(True)sself.assertTrue(True)(sself.failUnlessRaises(foo)sself.assertRaises(foo)(sself.failIf(False)sself.assertFalse(False)(R!(RttestsR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyttest_deprecated_names�s	cCs�d}d}|j||�d}d}|j||�d}d}|j||�d}d}|j||�d	}d
}|j||�d}d}|j||�d
}d}|j||�dS(Nseq = self.assertEqualsseq = self.assertEquals#self.assertEquals(2, 3, msg="fail")s"self.assertEqual(2, 3, msg="fail")s)self.assertEquals(2, 3, msg="fail") # foos(self.assertEqual(2, 3, msg="fail") # foosself.assertEquals (2, 3)sself.assertEqual (2, 3)s  self.assertEquals (2, 3)s  self.assertEqual (2, 3)s0with self.failUnlessRaises(Explosion): explode()s,with self.assertRaises(Explosion): explode()s6with self.failUnlessRaises(Explosion) as cm: explode()s2with self.assertRaises(Explosion) as cm: explode()(R!(RR=R>((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt
test_variants�s*cCs|jd�|jd�dS(Nsself.assertEqualsOnSaturdays!self.assertEqualsOnSaturday(3, 5)(R&(R((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyRis
(R9R.R
R/R0Ri(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyR,�s		(Ft__doc__R�tunittestR�RRRRRRRRt
lib2to3.testsRtTestCaseRR;RBROReRjRoRR�R�R�R�R�R�R�R�R�R�R�R�R�R�RR
RRR(R*R:R>RgRjR~R�R�R�R�R�R�R�R�R�R�R�R�R�R�RRR	RRRR%R,(((sr/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/lib2to3/tests/test_fixers.pyt<module>s�"9:�1#j3&�}.&�H/+bn/� ��4B.N]VpC �Y
=J�":�=cX

Youez - 2016 - github.com/yon3zu
LinuXploit