tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
Y\¬Qc@s!dZddlZddlZddlmZddlmZddlmZm    Z    m
Z
m Z ddl m Z de jfd„ƒYZd    efd
„ƒYZd efd „ƒ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„ƒYZDdS(ss" 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
((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pytsetUps         cCsPtj|ƒ}tj|ƒ}|jj||jƒ}|j|t|ƒƒ|S(N(RtreformatRtrefactor_stringR t assertEqualtunicode(Rtbeforetafterttree((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyt_checks
cCsB|j||ƒ}|j|jƒ|s>|j|jgƒndS(N(Rt
assertTruet was_changedRR (RRRtignore_warningsR((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pytcheck$scCsN|j||ƒ}|j|dj|jƒkƒ|sJ|j|jƒndS(Nt(RRtjoinR R(RRRtmessaget    unchangedR((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pytwarns*scCs|j|||dtƒdS(NR%(R&tTrue(RRR$((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pytwarns_unchanged0scCs0|j||ƒ|s,|j|jgƒndS(N(RRR (RRR ((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyR%3sc    GsØ|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
textendRR t
get_fixerst    __class__t
__module__tendswithtfailR#(Rtnamestfixestrtpretposttntx((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pytassert_runs_after8s   &    N( t__name__R-R    RRtFalseR!R&R(R%R7(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyt
test_basicJscCs d}d}|j||ƒdS(Nsif x<>y:
            passsif x!=y:
            pass(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyt test_chainedZs(R8R-R
R>R?R@(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyR:Gs        t Test_has_keycBsqeZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z d
„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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_11—s(R8R-R
RCRDRERFRGRHRIRJRKRLRM(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRAbs                                        t
Test_applycBsïeZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z d
„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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRCŸscCs d}d}|j||ƒdS(Nsy = apply(f, g, h)sy = f(*g, **h)(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRD¤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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRE©scCs d}d}|j||ƒdS(Nsapply(f, (x, y) + t)sf(*(x, y) + t)(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRF®scCs d}d}|j||ƒdS(Nsapply(f, args,)sf(*args)(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRG³scCs d}d}|j||ƒdS(Nsapply(f, args, kwds,)sf(*args, **kwds)(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRH¸scCs d}d}|j||ƒdS(Nsx = apply(f+g, args)sx = (f+g)(*args)(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_subscriptÕscCs d}d}|j||ƒdS(Nsx = apply(f(), args)sx = f()(*args)(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_weird_commentsæscCsd}|j|ƒdS(Nsapply()(R%(Rts((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged_1ïscCsd}|j|ƒdS(Nsapply(f)(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged_2óscCsd}|j|ƒdS(Ns    apply(f,)(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged_3÷scCsd}|j|ƒdS(Nsapply(f, args, kwds, extras)(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged_4ûscCsd}|j|ƒdS(Nsapply(f, *args, **kwds)(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged_5ÿscCsd}|j|ƒdS(Nsapply(f, *args)(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged_6scCsd}|j|ƒdS(Ns#apply(func=f, args=args, kwds=kwds)(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged_7scCsd}|j|ƒdS(Nsapply(f, args=args, kwds=kwds)(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged_8 scCsd}|j|ƒdS(Nsapply(f, args, kwds=kwds)(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged_9scCs d}d}|j||ƒdS(Nsapply(  f,  args,   kwds)sf(*args, **kwds)(R!(RR=R<((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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<((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyt test_space_2s(R8R-R
RCRDRERFRGRHRPRQRRRSRTRURVRWRYRZR[R\R]R^R_R`RaRbRc(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRNœs4                                                                                                    t Test_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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest/scCscd}|j|ƒd}|j|ƒd}|j|ƒd}|j|ƒd}|j|ƒdS(Ns intern(a=1)s intern(f, g)s
intern(*h)s intern(**i)sintern()(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged>s    (R8R-R
RfRgRh(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRds        t Test_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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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)s reduce(**c)sreduce()(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRhas    (R8R-R
RkRlRmRh(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRiNs
            t
Test_printcBs§eZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z d
„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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRftscCs*d}|j|ƒd}|j|ƒdS(Nsprint()s    print('')(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRC‹scCs d}d}|j||ƒdS(Ns
print 1, 2s print(1, 2)(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRDscCs d}d}|j||ƒdS(NRosprint()(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRE•scCs d}d}|j||ƒdS(Nsprint whatever; printsprint(whatever); print()(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRFšscCs d}d}|j||ƒdS(Nsprint; print whatever;sprint(); print(whatever);(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRG scCs d}d}|j||ƒdS(Nsprint (a, b, c)sprint((a, b, c))(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_trailing_comma_1¬scCs d}d}|j||ƒdS(Ns print 1, 2,sprint(1, 2, end=' ')(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_trailing_comma_2±scCs d}d}|j||ƒdS(Nsprint 1,sprint(1, end=' ')(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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!(RRXR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_with_future_print_functionÑs
 (R8R-R
RfRpRtRCRDRERFRGRuRvRwRxRyRzR{R|R}(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRnqs$                                                                t    Test_execcBsheZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z d
„Z RS( texeccCs d}d}|j||ƒdS(Ns  exec code in ns1,   ns2s  exec(code, ns1,   ns2)(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRfÞscCs d}d}|j||ƒdS(Ns    exec codes
exec(code)(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyR>ãscCs d}d}|j||ƒdS(Nsexec code in nssexec(code, ns)(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRPòscCs d}d}|j||ƒdS(Nsexec a.b() + c in nssexec(a.b() + c, ns)(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRQ÷scCsd}|j|ƒdS(Ns
exec(code)(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRYþscCsd}|j|ƒdS(Ns exec (code)(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRZscCsd}|j|ƒdS(Nsexec(code, ns)(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyR[scCsd}|j|ƒdS(Nsexec(code, ns1, ns2)(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyR\
s( R8R-R
RfR>R€RRPRQRYRZR[R\(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRfscCs d}d}|j||ƒdS(Ns x = `1 + 2`sx = repr(1 + 2)(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyt test_simple_1scCs d}d}|j||ƒdS(Nsy = `x`s y = repr(x)(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRu%scCs d}d}|j||ƒdS(Ns x = `1 + `2``sx = repr(1 + repr(2))(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyt test_nested*scCs d}d}|j||ƒdS(Nsx = `1, 2 + `3, 4``sx = repr((1, 2 + repr((3, 4))))(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_nested_tuples/s(
R8R-R
RfR„R…R†RuR‡Rˆ(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyR‚s                        t Test_exceptcBsžeZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z d
„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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRf7scCs d}d}|j||ƒdS(NsV
            try:
                pass
            except Foo, e:
                passsX
            try:
                pass
            except Foo as e:
                pass(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyt test_simpleDscCs d}d}|j||ƒdS(NsU
            try:
                pass
            except Foo,e:
                passsX
            try:
                pass
            except Foo as e:
                pass(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_one_line_suitesÿscCsd}|j|ƒdS(NsO
            try:
                pass
            except:
                pass(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRY/scCsd}|j|ƒdS(NsY
            try:
                pass
            except Exception:
                pass(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRZ7scCsd}|j|ƒdS(Nsg
            try:
                pass
            except (Exception, SystemExit):
                pass(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyR[?s(R8R-R
RfR‹RŒRRŽRRR‘R’R“R”R•R–RYRZR[(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyR‰4s"                                                    0        t
Test_raisecBs§eZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z d
„Z d „Z d „Zd „Zd„Zd„Zd„Zd„ZRS(traisecCs d}d}|j||ƒdS(Nsraise Exception, 5sraise Exception(5)(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRfOs 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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_tuple_detectionqscCs d}d}|j||ƒdS(Nsraise (((E1, E2), E3), E4), Vs raise E1(V)(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_tuple_exc_1vscCs d}d}|j||ƒdS(Nsraise (E1, (E2, E3), E4), Vs raise E1(V)(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_tuple_exc_2{scCsd}|j|dƒdS(Ns raise 'foo's+Python 3 does not support string exceptions(R((RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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((RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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((RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyt    test_tb_6»s(R8R-R
R>RfR™RšR›RœRRžRŸR R¡R¢R£R¤R¥R¦R§(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyR—Gs$                                                                    t
Test_throwcBs°eZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z d
„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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRCÉscCs d}d}|j||ƒdS(Nsg.throw(Exception,5)sg.throw(Exception(5))(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRDÎscCs d}d}|j||ƒdS(Nsg.throw(Exception, (5, 6, 7))sg.throw(Exception(5, 6, 7))(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyREÓscCs d}d}|j||ƒdS(Ns5 + g.throw(Exception, 5)s5 + g.throw(Exception(5))(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRFØscCsd}|j|dƒdS(Nsg.throw("foo")s+Python 3 does not support string exceptions(R((RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyt test_warn_1ßscCsd}|j|dƒdS(Nsg.throw("foo", 5)s+Python 3 does not support string exceptions(R((RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyt test_warn_2ãscCsd}|j|dƒdS(Nsg.throw("foo", 5, 6)s+Python 3 does not support string exceptions(R((RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyt test_warn_3çscCsd}|j|ƒdS(Nsg.throw(Exception)(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_untouched_1íscCsd}|j|ƒdS(Nsg.throw(Exception(5, 6))(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_untouched_2ñscCsd}|j|ƒdS(Ns5 + g.throw(Exception(5, 6))(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyt    test_tb_88s(R8R-R
RCRDRERFRªR«R¬R­R®R¯R¢R£R¤R¥R¦R§R°R±(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyR¨Æs&                                                                    t    Test_longcBs;eZdZd„Zd„Zd„Zd„Zd„ZRS(tlongcCs d}d}|j||ƒdS(Ns x = long(x)s
x = int(x)(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRCFscCs d}d}|j||ƒdS(Nsy = isinstance(x, long)sy = isinstance(x, int)(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRDKscCs d}d}|j||ƒdS(Nsz = type(x) in (int, long)sz = type(x) in (int, int)(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyREPscCs‰d}|j|ƒd}|j|ƒd}|j|ƒd}|j|ƒd}|j|ƒd}|j|ƒd}|j|ƒdS(Ns long = Trues s.long = Truesdef long(): passsclass long(): passsdef f(long): passsdef f(g, long): passsdef f(x, long=True): pass(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRhUs      cCs d}d}|j||ƒdS(Nsx =   long(  x  )sx =   int(  x  )(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRfks(R8R-R
RCRDRERhRf(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyt test_spacings (R8R-R
R¶R·(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRf«scCs|jdƒdS(Nsisinstance(x, (str, int))(R%(R((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRh°s(R8R-R
RºRfRh(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyR¸—s        t    Test_dictcBsIeZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z d
„Z d „Z d „Zd „Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Zd „Zd!„Zd"„Zd#„ZRS($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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRf¶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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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%(RtwrapperRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRhì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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_01÷s cCs d}d}|j||ƒdS(Ns    d.items()slist(d.items())(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_02scCs d}d}|j||ƒdS(Ns
d.values()slist(d.values())(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_03scCs d}d}|j||ƒdS(Ns d.iterkeys()siter(d.keys())(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_04
scCs d}d}|j||ƒdS(Ns d.iteritems()siter(d.items())(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_05scCs d}d}|j||ƒdS(Nsd.itervalues()siter(d.values())(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_06scCsd}|j|ƒdS(Nslist(d.keys())(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_07scCsd}|j|ƒdS(Nssorted(d.keys())(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_08scCs d}d}|j||ƒdS(Nsiter(d.keys())siter(list(d.keys()))(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRL&scCs d}d}|j||ƒdS(Nsfor i in d.keys(): print is for i in list(d.keys()): print i(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRM+scCs d}d}|j||ƒdS(Nsfor i in d.iterkeys(): print isfor i in d.keys(): print i(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_16DscCs d}d}|j||ƒdS(Nsiter(d.iterkeys())siter(d.keys())(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_17IscCs d}d}|j||ƒdS(Nslist(d.iterkeys())slist(d.keys())(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_18NscCs d}d}|j||ƒdS(Nssorted(d.iterkeys())ssorted(d.keys())(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_19SscCs d}d}|j||ƒdS(Nsfoo(d.iterkeys())sfoo(iter(d.keys()))(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_24lscCs d}d}|j||ƒdS(Ns d.viewkeys()sd.keys()(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_25qscCs d}d}|j||ƒdS(Ns d.viewitems()s    d.items()(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_26vscCs d}d}|j||ƒdS(Nsd.viewvalues()s
d.values()(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRˀscCs d}d}|j||ƒdS(Ns(i for i in d.viewkeys())s(i for i in d.keys())(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyR̅scCs d}d}|j||ƒdS(Nsiter(d.viewkeys())siter(d.keys())(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRΊscCs d}d}|j||ƒdS(Nslist(d.viewkeys())slist(d.keys())(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRϏscCs d}d}|j||ƒdS(Nssorted(d.viewkeys())ssorted(d.keys())(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRДs(!R8R-R
RfR½RhRÀRÁRÂRÃRÄRÅRÆRÇRÈRLRMRÉRÊRËRÌRÍRÎRÏRÐRÑRÒRÓRÔRÕRÖR×RØ(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyR»³sH                                                                                                                                            t Test_xrangecBs_eZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z RS(
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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRfœscCs d}d}|j||ƒdS(Nsx = xrange(10)s x = range(10)(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_range_in_forÖs cCs|jdƒdS(Nsx in range(10, 3, 9)(R%(R((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_in_contains_testÚscCs)x"tjD]}|jd|ƒq
WdS(Nsa = %s(range(10))(RR¾R%(Rtcall((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_in_consuming_contextÝs( R8R-R
RfRÛRÜRÝRÞRßRàRáRã(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRٙs                                    tTest_xrange_with_reducecBseZd„Zd„ZRS(cCs tt|ƒjddgƒdS(NRÚRj(tsuperRäR(R((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_double_transformæs(R8R-RRæ(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRfïs cCs d}d}|j||ƒdS(Nsx = raw_input()s x = input()(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRCøscCs d}d}|j||ƒdS(Nsx = raw_input('')s x = input('')(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRDýscCs d}d}|j||ƒdS(Nsx = raw_input('prompt')sx = input('prompt')(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyREscCs d}d}|j||ƒdS(Nsx = raw_input(foo(a) + 6)sx = input(foo(a) + 6)(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRFscCs d}d}|j||ƒdS(Nsx = raw_input(invite).split()sx = input(invite).split()(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRG scCs d}d}|j||ƒdS(Ns x = raw_input(invite) . split ()sx = input(invite) . split ()(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRHscCs d}d}|j||ƒdS(Nsx = int(raw_input())sx = int(input())(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRJs( R8R-R
RfRCRDRERFRGRHRJ(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRg 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òRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRh*s
 
 
(R8R-R
RñRgRh(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRU8scCsXd}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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRhRs   (R8R-R
RURõRh(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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ùRúR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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ùRúR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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ùRúR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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ùRúR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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ùRúR<R=RX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_import_module_usages  (R8R-RûRüRýRþRÿR(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_multiple_imports_asËs(R8R-R
tfixes.fix_importsRR÷RR(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRÂs    t Test_imports2cBseZdZddlmZRS(timports2i(R(R8R-R
tfixes.fix_imports2RR÷(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyR×stTest_imports_fixer_ordercBseZd„Zd„ZRS(cCsqtt|ƒjddgƒddlm}|jƒ|_ddlm}xd    D]}|||j|<qRWdS(
NRRi(Rtdbhashtdumbdbmtdbmtgdbm(R R R R(RåR
RR    RtcopyR÷R(Rtmapping2tmapping1tkey((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRÞs  cCs+x$dD]}||_|jdƒqWdS(NRRtimport(simportssimports2(R
R7(Rtfix((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyt$test_after_local_imports_refactoringæs     (R8R-RR(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyR
Üs    t Test_urllibcBs]eZdZddlmZd„Zd„Zd„Zd„Z    d„Z
d„Z d    „Z RS(
turllibi(RcCs`xY|jjƒD]H\}}d|}ddjttdƒ|ƒƒ}|j||ƒqWdS(Ns    import %ss, i(R÷RøR#tmapRR!(RRùtchangesR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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ùRt all_membersRútmemberstmemberR<R=RX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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ùRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRýs
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ùRRúRRR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRþs cCs2x+|jD] }d|}|j|dƒq
WdS(Nsfrom %s import *sCannot handle star imports(R÷R((RRùRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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ùRRúRRR5tmemst
new_importR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyR@s     &( R8R-R
tfixes.fix_urllibRR÷RûRüRýRþRÿRR(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRf]s cCs d}d}|j||ƒdS(Nsx = input()  #  foosx = eval(input())  #  foo(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRpks   cCs d}d}|j||ƒdS(Ns x = input()sx = eval(input())(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRCuscCs d}d}|j||ƒdS(Ns x = input('')sx = eval(input(''))(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRDzscCs d}d}|j||ƒdS(Nsx = input('prompt')sx = eval(input('prompt'))(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyREscCs d}d}|j||ƒdS(Nsx = input(foo(5) + 9)sx = eval(input(foo(5) + 9))(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRF„s(
R8R-R
RfR½RpRCRDRERF(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyR"Zs                
           tTest_tuple_paramscBsÂeZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z d
„Z d „Z d „Zd „Zd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(t tuple_paramscCsd}|j|ƒdS(Nsdef foo(): pass(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRYŒscCsd}|j|ƒdS(Nsdef foo(a, b, c): pass(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRZscCsd}|j|ƒdS(Nsdef foo(a=3, b=4, c=5): pass(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRC˜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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRD£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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRE®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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_docstringïscCsd}|j|ƒdS(Nslambda x: x + 5(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_lambda_nested_multi_use?s(R8R-R
RYRZR[RCRDRER&R'R(R)R*R+R,R-R.R/R0R1R2R3(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyR$‰s*                                                                                    tTest_methodattrscBs/eZdZdddgZd„Zd„ZRS(t methodattrstfuncRtclasscCsŠxƒ|jD]x}d|}|dkr/d}n
d|}|j||ƒd|}|dkrhd}n
d|}|j||ƒq
WdS(Nsa.im_%sR7sa.__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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRgIs
     
 
     
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òRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRhYs
 
 
(R8R-R
RñRgRh(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyR4Ds    t    Test_nextcBs£eZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z d
„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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRCgscCs d}d}|j||ƒdS(Nsa.b.c.d.next()s next(a.b.c.d)(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRDlscCs d}d}|j||ƒdS(Ns(a + b).next()s next((a + b))(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyREqscCs d}d}|j||ƒdS(Ns
a().next()s    next(a())(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRFvscCs d}d}|j||ƒdS(Nsa().next() + bs next(a()) + b(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRG{scCs d}d}|j||ƒdS(Nsc(      a().next() + b)sc(      next(a()) + b)(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRH€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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyt test_method_4    s  cCsd}|j|ƒdS(Nsa
            class A:
                def next(self, a, b):
                    pass
            (R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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((RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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((RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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((RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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((RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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((RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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((RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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((RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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((RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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((RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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((RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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((RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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((RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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((RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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((RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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((RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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((RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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((RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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((RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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((RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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((RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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((RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_noncall_access_39
s(0R8R-R
RCRDRERFRGRHR:R;R<R=R>R?R@RARBRCRDRERFRGRHRIRJRKRLRMRNRORPRQRRRSRTRURVRWRXRYRZR[R\R]R^R_R`(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyR8ds\                                                                        
   
   
   
   
                           
   
   
   
   
   
   
                   
   
   
       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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRCA
scCs d}d}|j||ƒdS(Nsj
            class A(object):
                def __nonzero__(self):
                    pass
            sg
            class A(object):
                def __bool__(self):
                    pass
            (R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRDN
scCsd}|j|ƒdS(Nsg
            class A(object):
                def __bool__(self):
                    pass
            (R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRY[
scCsd}|j|ƒdS(Nsm
            class A(object):
                def __nonzero__(self, a):
                    pass
            (R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRZc
scCsd}|j|ƒdS(NsE
            def __nonzero__(self):
                pass
            (R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged_funck
s(R8R-R
RCRDRYRZRc(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRa>
s                 tTest_numliteralscBsƒeZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z d
„Z d „Z d „Zd „ZRS(t numliteralscCs d}d}|j||ƒdS(Nt0755t0o755(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyt test_octal_1u
scCs d}d}|j||ƒdS(Nsa = 12Lsa = 12(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_long_int_1z
scCs d}d}|j||ƒdS(Nsa = 12lsa = 12(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_long_int_2
scCs d}d}|j||ƒdS(Ns    b = 0x12lsb = 0x12(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyt test_long_hex„
scCs<d}d}|j||ƒd}d}|j||ƒdS(Ns b =   0x12Ls
b =   0x12sb = 0755 # spamsb = 0o755 # spam(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_comments_and_spacing‰
s cCsd}|j|ƒdS(Nt5(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged_int’
scCsd}|j|ƒdS(Ns5.0(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged_float–
scCsd}|j|ƒdS(NRg(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged_octalš
scCsd}|j|ƒdS(Nt0xABC(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged_hexž
scCsd}|j|ƒdS(Ns5.0e10(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged_exp¢
scCsd}|j|ƒdS(Ns5 + 4j(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged_complex_int¦
scCsd}|j|ƒdS(Ns
5.4 + 4.9j(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged_complex_floatª
scCs*d}|j|ƒd}|j|ƒdS(Nt4js4.4j(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged_complex_bare®
s (R8R-R
RhRiRjRkRlRnRoRpRrRsRtRuRw(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRdr
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ùRúR<R=RX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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ùRúR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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ùRúR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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ùRúR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pytXXX_test_from_import_usageÕ
s"(smaxintsmaxsize(R8R-R
R÷RüRþRR~(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRx´
s                   t Test_unicodecBsDeZdZd„Zd„Zd„Zd„Zd„Zd„ZRS(RcCsXd}d}|j||ƒd}d}|j||ƒd}d}|j||ƒdS(Ns unicode( x)sstr( x)s  unicode(x )s str(x )s u'h's 'h'(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unicode_callò
scCs d}d}|j||ƒdS(Ns unichr(u'h')schr('h')(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyt test_unichr÷
scCs d}d}|j||ƒdS(Nsu"x"s"x"(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unicode_literal_1ü
scCs d}d}|j||ƒdS(Nsur'x'sr'x'(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unicode_literal_2 scCs d}d}|j||ƒdS(Ns
UR'''x''' s    R'''x''' (R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unicode_literal_3 s(    R8R-R
R€RR‚RƒR„R…(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRf s cCs d}d}|j||ƒdS(Ns callable(x)s6import collections
isinstance(x, collections.Callable)(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_global_import s
 
 
 
 
 
 
 
 
cCsPd}|j|ƒd}|j|ƒd}|j|ƒd}|j|ƒdS(Ns callable(*x)scallable(x, y)scallable(x, kw=y)s
callable()(R%(RR=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_callable_should_not_change[ s   (R8R-R
RfRˆR‰RŠ(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyR† s
    
       >t Test_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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRfk 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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_filter_basict 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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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<((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_future_builtins³ s (R8R-R
RfRRŽR(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyR‹h 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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRfÅ scCs d}d}|j||ƒdS(Nsx = map(f, 'abc')   #   foos!x = list(map(f, 'abc'))   #   foo(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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((RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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<((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyR# s (
R8R-R
R!RfR½R‘R’R“R(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyR!1 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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_zip_basic5 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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_zip_nochange> 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<((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRf s (R8R-R
R!R–R—R(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyR”. 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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRgt s(R8R-R
Rg(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyR˜q st
Test_typescBseZdZd„ZRS(ttypescCs¬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)(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_basic_types_convert„ s$(R8R-R
RŸ(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRš st Test_idiomscBs°eZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z d
„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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_is_not_expression 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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_ne_reverse 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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_ne_expression# s cCsd}|j|ƒdS(Nstype(x).__name__(R%(RR=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_type_unchanged, 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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_sort_list_call0 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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_sort_unchangedæ s (R8R-R
R¢R£R¤R¥R¦R§R¨R©RªR«R¬R­R®R¯R°R±R²R³(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_basestringø s(R8R-R
R¶(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyR´õ st Test_buffercBs eZdZd„Zd„ZRS(tbuffercCs d}d}|j||ƒdS(Ns x = buffer(y)sx = memoryview(y)(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyt test_bufferscCs d}d}|j||ƒdS(Nsbuffer(y)[4:5]smemoryview(y)[4:5](R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyt test_slicings(R8R-R
R¹Rº(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyR·ý s    t Test_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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyt test_future scCs|jdƒdS(NRo(R7(R((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_run_orders(R8R-R
R½R¾(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyR»
s     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ÁtfR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pytcheckall s
 
cCs d}d}|j||ƒdS(Nsitertools.izip(a, b)s    zip(a, b)(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_0*scCs d}d}|j||ƒdS(Ns%s(f, a)(RÃ(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRC1scCs<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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_qualified6s 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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRD?s cCs d}d}|j||ƒdS(Ns     %s(f, a)(RÃ(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRbHscCs<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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRcMs cCs|jdddƒdS(NRR•RŒ(R7(R((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyR¾Vs( R8R-R
RÃRÄRCRÅRDRbRcR¾(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyR¿s    
                                   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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyt test_commentsjscCs<d}d}|j||ƒd}d}|j||ƒdS(Ns from itertools import imap, izipR"sfrom itertools import izip(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyt    test_noneos 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=RX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_import_asxscCs“xŒd    D]„}d|f}d|f}|j||ƒd|f}d|f}|j||ƒd|f}d|f}|j||ƒqWdS(
Nt filterfalset zip_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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_ifilter_and_zip_longestŒs       cCsd}|j|ƒdS(Nsfrom itertools import *(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_import_staršscCsd}|j|ƒdS(Nsfrom itertools import foo(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRhŸs(
R8R-R
RÈRÉRÊRËRÎRÏRh(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRÆZs                            t Test_importcBs¹eZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z d
„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_checkedRt always_existst present_files(Rí(R(sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyt fake_exists®siÿÿÿÿ(t
fix_import( RåRÐRRÑtsetRÓR'RÒt lib2to3.fixesRÕtexists(RRÔRÕ((Rsa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyR§s         cCs#ddlm}tjj|_dS(Niÿÿÿÿ(RÕ(R×RÕtostpathRØ(RRÕ((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttearDownµscCsEt|_tt|ƒj||ƒt|_tt|ƒj|ƒdS(N(R'RÒRåRÐR!R9R%(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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ƒƒ}|j dƒ|j t|jƒ|ƒqdWdS(NcSstjjj|jdƒƒS(Nt/(RÙRÚtpathsepR#tsplit(RÚ((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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í(sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pys    <genexpr>Òs( R9RÒRÖRÓRÙRÚtsepRÑR R%tdirnametaddR(RRàtexpected_extensionst names_to_testtexpected_checks((Rísa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_files_checked¿s                   cCs2d}t|_tdgƒ|_|j|ƒdS(Ns
import barsbar.py(R9RÒRÖRÓR%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_not_in_package×s    cCs5d}t|_tddgƒ|_|j|ƒdS(Ns1from __future__ import absolute_import
import bars __init__.pysbar.py(R9RÒRÖRÓR%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyt!test_with_absolute_import_enabledÝs    cCs>d}d}t|_tddgƒ|_|j||ƒdS(Ns
import barsfrom . import bars __init__.pysbar.py(R9RÒRÖRÓR!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_in_packageãs
    cCsHd}d}t|_tddtjjgƒ|_|j||ƒdS(Ns
import barsfrom . import bars __init__.pytbar(R9RÒRÖRÙRÚRäRÓR!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_import_from_packageês
    cCsd}|j|ƒdS(Nsfrom . import bar(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_already_relative_importñscCs d}d}|j||ƒdS(Nsimport bar # Foosfrom . import bar # Foo(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_comments_and_indentõscCsXd}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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_dotted_fromscCs d}d}|j||ƒdS(Ns"from green.eggs import ham as spams#from .green.eggs import ham as spam(RÜ(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyt test_from_as scCstd}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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyt test_importscCs<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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRË"s cCs8t|_tddgƒ|_d}|j|dƒdS(Nsfoo.pys __init__.pysimport foo, bars#absolute and local imports together(R9RÒRÖRÓR((RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_local_and_absolute+s    cCs d}d}|j||ƒdS(Nsimport foo.barsfrom . import foo.bar(RÜ(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_dotted_import2scCs d}d}|j||ƒdS(Nsimport foo.bar as bangsfrom . import foo.bar as bang(RÜ(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_dotted_import_as7scCs d}d}|j||ƒdS(Ns1
        # prefix
        import foo.bar
        s8
        # prefix
        from . import foo.bar
        (RÜ(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyt test_prefix<s(R8R-R
RRÛRÜRêRëRìRíRïRðRñRòRóRôRõRËRöR÷RøRù(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRФs(                                                                            tTest_set_literalcBs;eZdZd„Zd„Zd„Zd„Zd„ZRS(t set_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])s set((a, b))s{a, b}s set([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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyR>Ls2cCstd}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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_listcompsoscCsÈ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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRh²s     (R8R-R
R>RüR€RÉRh(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRúHs     #             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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRÄÊscCs d}d}|j||ƒdS(Ns sys.exc_valuessys.exc_info()[1](R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRCÏscCs d}d}|j||ƒdS(Nssys.exc_tracebackssys.exc_info()[2](R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRDÔscCs d}d}|j||ƒdS(Nssys.exc_type # Foossys.exc_info()[0] # Foo(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyREÙscCs d}d}|j||ƒdS(Nssys.  exc_typessys.  exc_info()[0](R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRFÞscCs d}d}|j||ƒdS(Nssys  .exc_typessys  .exc_info()[0](R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRGãs(    R8R-R
RÄRCRDRERFRG(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRýÇs                    t
Test_parencBszeZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z d
„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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRCñscCs d}d}|j||ƒdS(Ns[i for i  in     1, 2 ]s[i for i  in     (1, 2) ](R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRDö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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyREûscCs d}d}|j||ƒdS(Ns[i for i in 1,    2    ]s[i for i in (1,    2)    ](R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRFscCs d}d}|j||ƒdS(Ns(i for i in 1, 2)s(i for i in (1, 2))(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRGscCs 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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRH
scCsd}|j|ƒdS(Ns[i for i in (1, 2)](R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_unchanged_0scCsd}|j|ƒdS(Ns[i for i in foo()](R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRYscCsd}|j|ƒdS(Ns[i for i in (1, 2) if nothing](R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRZscCsd}|j|ƒdS(Ns(i for i in (1, 2))(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyR[scCsd}|j|ƒdS(Ns[i for i in m](R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyR\s(R8R-R
RÄRCRDRERFRGRHRRYRZR[R\(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRh's        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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRÉ<s 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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyt    test_metaUsB(R8R-R
RhRÉR(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyR#s        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()s os.getcwd()smeth = os.getcwdusmeth = os.getcwdsos.getcwdu(args)sos.getcwd(args)(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyR>ÌscCs d}d}|j||ƒdS(Nsos.getcwdu() # Foosos.getcwd() # Foo(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyt test_commentÝscCs=d}|j|ƒd}|j|ƒd}|j|ƒdS(Ns os.getcwd()s    getcwdu()s os.getcwdb()(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRhâs   cCs d}d}|j||ƒdS(Ns<
            if 1:
                os.getcwdu()
            s;
            if 1:
                os.getcwd()
            (R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_indentationìscCsXd}d}|j||ƒd}d}|j||ƒd}d}|j||ƒdS(Ns os .getcwdu()s os .getcwd()s os.  getcwdus os.  getcwdsos.getcwdu (  )sos.getcwd (  )(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_multilation÷s(R8R-R
R>RRhRR    (((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRÈs             
    t Test_operatorcBsŒeZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z d
„Z d „Z d „Zd „Zd„ZRS(toperatorcCs d}d}|j||ƒdS(Nsoperator.isCallable(x)shasattr(x, '__call__')(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_operator_isCallable    scCsXd}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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_operator_sequenceIncludesscCs d}d}|j||ƒdS(Nsoperator.isSequenceType(x)s6import collections
isinstance(x, collections.Sequence)(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_operator_isSequenceTypescCs d}d}|j||ƒdS(Nsoperator.isMappingType(x)s5import collections
isinstance(x, collections.Mapping)(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_operator_isMappingType scCs d}d}|j||ƒdS(Nsoperator.isNumberType(x)s,import numbers
isinstance(x, numbers.Number)(R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_operator_isNumberType%scCsXd}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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_operator_repeat*scCsXd}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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_operator_irepeat7scCs d}d}|j||ƒdS(Ns isCallable(x)s-You should use 'hasattr(x, '__call__')' here.(R((RRXtt((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_bare_isCallableDscCs d}d}|j||ƒdS(NssequenceIncludes(x, y)s.You should use 'operator.contains(x, y)' here.(R((RRXR((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_bare_sequenceIncludesIscCs d}d}|j||ƒdS(NsisSequenceType(z)s:You should use 'isinstance(z, collections.Sequence)' here.(R((RRXR((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyt!test_bare_operator_isSequenceTypeNscCs d}d}|j||ƒdS(NsisMappingType(x)s9You should use 'isinstance(x, collections.Mapping)' here.(R((RRXR((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyt test_bare_operator_isMappingTypeSscCs d}d}|j||ƒdS(NsisNumberType(y)s4You should use 'isinstance(y, numbers.Number)' here.(R((RRXR((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_bare_operator_isNumberTypeXscCs d}d}|j||ƒdS(Ns repeat(x, n)s)You should use 'operator.mul(x, n)' here.(R((RRXR((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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((RRXR((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_bare_operator_irepeatbs(R8R-R
R R RRRRRRRRRRRR(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyR‹lscCs d}d}|j||ƒdS(NsO
            import sys, crumbs
            sys.exitfunc = my_func
            sY
            import sys, crumbs, atexit
            atexit.register(my_func)
            (R!(RR<R=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_names_importxscCs 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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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=((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyttest_no_sys_import³scCsd}|j|ƒdS(Nsf(sys.exitfunc)(R%(RRX((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRh»s(
R8R-R
R‹RRRÉRR!Rh(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyRhs                        (Et__doc__RÙtunittestRÀRR RRRRRRt lib2to3.testsRtTestCaseRR:RARNRdRiRnR~R‚R‰R—R¨R²R´R¸R»RÙRäRçRéRóRöRRR
RR"R$R4R8RaRdRxRR†R‹RR”R˜RšR R´R·R»R¿RÆRÐRúRýRÿRRR
R(((sa/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/lib2to3/tests/test_fixers.pyt<module>s~  "9:1#j3&ÿ}.&æH /+bn/» ÿÛ4B.)]VpCÿY =J¤":¥=c