summaryrefslogtreecommitdiff
path: root/lib/python2.7/lib2to3/fixes/fix_map.pyo
blob: 20a916b87be6998d4615895e4de808265ced12b2 (plain)
ofshex dumpascii
0000 03 f3 0d 0a 59 5c ac 51 63 00 00 00 00 00 00 00 00 03 00 00 00 40 00 00 00 73 75 00 00 00 64 00 ....Y\.Qc............@...su...d.
0020 00 5a 00 00 64 01 00 64 02 00 6c 01 00 6d 02 00 5a 02 00 01 64 01 00 64 03 00 6c 03 00 6d 04 00 .Z..d..d..l..m..Z...d..d..l..m..
0040 5a 04 00 01 64 01 00 64 04 00 6c 05 00 6d 06 00 5a 06 00 6d 07 00 5a 07 00 6d 08 00 5a 08 00 6d Z...d..d..l..m..Z..m..Z..m..Z..m
0060 09 00 5a 09 00 01 64 01 00 64 05 00 6c 0a 00 6d 0b 00 5a 0c 00 01 64 06 00 65 04 00 6a 0d 00 66 ..Z...d..d..l..m..Z...d..e..j..f
0080 01 00 64 07 00 84 00 00 83 00 00 59 5a 0e 00 64 08 00 53 28 09 00 00 00 73 08 03 00 00 46 69 78 ..d........YZ..d..S(....s....Fix
00a0 65 72 20 74 68 61 74 20 63 68 61 6e 67 65 73 20 6d 61 70 28 46 2c 20 2e 2e 2e 29 20 69 6e 74 6f er.that.changes.map(F,....).into
00c0 20 6c 69 73 74 28 6d 61 70 28 46 2c 20 2e 2e 2e 29 29 20 75 6e 6c 65 73 73 20 74 68 65 72 65 0a .list(map(F,....)).unless.there.
00e0 65 78 69 73 74 73 20 61 20 27 66 72 6f 6d 20 66 75 74 75 72 65 5f 62 75 69 6c 74 69 6e 73 20 69 exists.a.'from.future_builtins.i
0100 6d 70 6f 72 74 20 6d 61 70 27 20 73 74 61 74 65 6d 65 6e 74 20 69 6e 20 74 68 65 20 74 6f 70 2d mport.map'.statement.in.the.top-
0120 6c 65 76 65 6c 0a 6e 61 6d 65 73 70 61 63 65 2e 0a 0a 41 73 20 61 20 73 70 65 63 69 61 6c 20 63 level.namespace...As.a.special.c
0140 61 73 65 2c 20 6d 61 70 28 4e 6f 6e 65 2c 20 58 29 20 69 73 20 63 68 61 6e 67 65 64 20 69 6e 74 ase,.map(None,.X).is.changed.int
0160 6f 20 6c 69 73 74 28 58 29 2e 20 20 28 54 68 69 73 20 69 73 0a 6e 65 63 65 73 73 61 72 79 20 62 o.list(X)...(This.is.necessary.b
0180 65 63 61 75 73 65 20 74 68 65 20 73 65 6d 61 6e 74 69 63 73 20 61 72 65 20 63 68 61 6e 67 65 64 ecause.the.semantics.are.changed
01a0 20 69 6e 20 74 68 69 73 20 63 61 73 65 20 2d 2d 20 74 68 65 20 6e 65 77 0a 6d 61 70 28 4e 6f 6e .in.this.case.--.the.new.map(Non
01c0 65 2c 20 58 29 20 69 73 20 65 71 75 69 76 61 6c 65 6e 74 20 74 6f 20 5b 28 78 2c 29 20 66 6f 72 e,.X).is.equivalent.to.[(x,).for
01e0 20 78 20 69 6e 20 58 5d 2e 29 0a 0a 57 65 20 61 76 6f 69 64 20 74 68 65 20 74 72 61 6e 73 66 6f .x.in.X].)..We.avoid.the.transfo
0200 72 6d 61 74 69 6f 6e 20 28 65 78 63 65 70 74 20 66 6f 72 20 74 68 65 20 73 70 65 63 69 61 6c 20 rmation.(except.for.the.special.
0220 63 61 73 65 20 6d 65 6e 74 69 6f 6e 65 64 0a 61 62 6f 76 65 29 20 69 66 20 74 68 65 20 6d 61 70 case.mentioned.above).if.the.map
0240 28 29 20 63 61 6c 6c 20 69 73 20 64 69 72 65 63 74 6c 79 20 63 6f 6e 74 61 69 6e 65 64 20 69 6e ().call.is.directly.contained.in
0260 20 69 74 65 72 28 3c 3e 29 2c 20 6c 69 73 74 28 3c 3e 29 2c 0a 74 75 70 6c 65 28 3c 3e 29 2c 20 .iter(<>),.list(<>),.tuple(<>),.
0280 73 6f 72 74 65 64 28 3c 3e 29 2c 20 2e 2e 2e 6a 6f 69 6e 28 3c 3e 29 2c 20 6f 72 20 66 6f 72 20 sorted(<>),....join(<>),.or.for.
02a0 56 20 69 6e 20 3c 3e 3a 2e 0a 0a 4e 4f 54 45 3a 20 54 68 69 73 20 69 73 20 73 74 69 6c 6c 20 6e V.in.<>:...NOTE:.This.is.still.n
02c0 6f 74 20 63 6f 72 72 65 63 74 20 69 66 20 74 68 65 20 6f 72 69 67 69 6e 61 6c 20 63 6f 64 65 20 ot.correct.if.the.original.code.
02e0 77 61 73 20 64 65 70 65 6e 64 69 6e 67 20 6f 6e 0a 6d 61 70 28 46 2c 20 58 2c 20 59 2c 20 2e 2e was.depending.on.map(F,.X,.Y,...
0300 2e 29 20 74 6f 20 67 6f 20 6f 6e 20 75 6e 74 69 6c 20 74 68 65 20 6c 6f 6e 67 65 73 74 20 61 72 .).to.go.on.until.the.longest.ar
0320 67 75 6d 65 6e 74 20 69 73 20 65 78 68 61 75 73 74 65 64 2c 0a 73 75 62 73 74 69 74 75 74 69 6e gument.is.exhausted,.substitutin
0340 67 20 4e 6f 6e 65 20 66 6f 72 20 6d 69 73 73 69 6e 67 20 76 61 6c 75 65 73 20 2d 2d 20 6c 69 6b g.None.for.missing.values.--.lik
0360 65 20 7a 69 70 28 29 2c 20 69 74 20 6e 6f 77 20 73 74 6f 70 73 20 61 73 0a 73 6f 6f 6e 20 61 73 e.zip(),.it.now.stops.as.soon.as
0380 20 74 68 65 20 73 68 6f 72 74 65 73 74 20 61 72 67 75 6d 65 6e 74 20 69 73 20 65 78 68 61 75 73 .the.shortest.argument.is.exhaus
03a0 74 65 64 2e 0a 69 02 00 00 00 28 01 00 00 00 74 05 00 00 00 74 6f 6b 65 6e 28 01 00 00 00 74 0a ted..i....(....t....token(....t.
03c0 00 00 00 66 69 78 65 72 5f 62 61 73 65 28 04 00 00 00 74 04 00 00 00 4e 61 6d 65 74 04 00 00 00 ...fixer_base(....t....Namet....
03e0 43 61 6c 6c 74 08 00 00 00 4c 69 73 74 43 6f 6d 70 74 12 00 00 00 69 6e 5f 73 70 65 63 69 61 6c Callt....ListCompt....in_special
0400 5f 63 6f 6e 74 65 78 74 28 01 00 00 00 74 0e 00 00 00 70 79 74 68 6f 6e 5f 73 79 6d 62 6f 6c 73 _context(....t....python_symbols
0420 74 06 00 00 00 46 69 78 4d 61 70 63 00 00 00 00 00 00 00 00 01 00 00 00 42 00 00 00 73 23 00 00 t....FixMapc............B...s#..
0440 00 65 00 00 5a 01 00 65 02 00 5a 03 00 64 00 00 5a 04 00 64 01 00 5a 05 00 64 02 00 84 00 00 5a .e..Z..e..Z..d..Z..d..Z..d.....Z
0460 06 00 52 53 28 03 00 00 00 73 e9 01 00 00 0a 20 20 20 20 6d 61 70 5f 6e 6f 6e 65 3d 70 6f 77 65 ..RS(....s.........map_none=powe
0480 72 3c 0a 20 20 20 20 20 20 20 20 27 6d 61 70 27 0a 20 20 20 20 20 20 20 20 74 72 61 69 6c 65 72 r<.........'map'.........trailer
04a0 3c 20 27 28 27 20 61 72 67 6c 69 73 74 3c 20 27 4e 6f 6e 65 27 20 27 2c 27 20 61 72 67 3d 61 6e <.'('.arglist<.'None'.','.arg=an
04c0 79 20 5b 27 2c 27 5d 20 3e 20 27 29 27 20 3e 0a 20 20 20 20 3e 0a 20 20 20 20 7c 0a 20 20 20 20 y.[','].>.')'.>.....>.....|.....
04e0 6d 61 70 5f 6c 61 6d 62 64 61 3d 70 6f 77 65 72 3c 0a 20 20 20 20 20 20 20 20 27 6d 61 70 27 0a map_lambda=power<.........'map'.
0500 20 20 20 20 20 20 20 20 74 72 61 69 6c 65 72 3c 0a 20 20 20 20 20 20 20 20 20 20 20 20 27 28 27 ........trailer<.............'('
0520 0a 20 20 20 20 20 20 20 20 20 20 20 20 61 72 67 6c 69 73 74 3c 0a 20 20 20 20 20 20 20 20 20 20 .............arglist<...........
0540 20 20 20 20 20 20 6c 61 6d 62 64 65 66 3c 20 27 6c 61 6d 62 64 61 27 0a 20 20 20 20 20 20 20 20 ......lambdef<.'lambda'.........
0560 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 66 70 3d 4e 41 4d 45 20 7c 20 76 66 70 64 .................(fp=NAME.|.vfpd
0580 65 66 3c 20 27 28 27 20 66 70 3d 4e 41 4d 45 20 27 29 27 3e 20 29 20 27 3a 27 20 78 70 3d 61 6e ef<.'('.fp=NAME.')'>.).':'.xp=an
05a0 79 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3e 0a 20 20 20 20 20 20 20 20 20 20 20 20 y.................>.............
05c0 20 20 20 20 27 2c 27 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 74 3d 61 6e 79 0a 20 ....','.................it=any..
05e0 20 20 20 20 20 20 20 20 20 20 20 3e 0a 20 20 20 20 20 20 20 20 20 20 20 20 27 29 27 0a 20 20 20 ...........>.............')'....
0600 20 20 20 20 20 3e 0a 20 20 20 20 3e 0a 20 20 20 20 7c 0a 20 20 20 20 70 6f 77 65 72 3c 0a 20 20 .....>.....>.....|.....power<...
0620 20 20 20 20 20 20 27 6d 61 70 27 20 74 72 61 69 6c 65 72 3c 20 27 28 27 20 5b 61 72 67 6c 69 73 ......'map'.trailer<.'('.[arglis
0640 74 3d 61 6e 79 5d 20 27 29 27 20 3e 0a 20 20 20 20 3e 0a 20 20 20 20 73 13 00 00 00 66 75 74 75 t=any].')'.>.....>.....s....futu
0660 72 65 5f 62 75 69 6c 74 69 6e 73 2e 6d 61 70 63 03 00 00 00 05 00 00 00 05 00 00 00 43 00 00 00 re_builtins.mapc............C...
0680 73 81 01 00 00 7c 00 00 6a 00 00 7c 01 00 83 01 00 72 13 00 64 00 00 53 7c 01 00 6a 01 00 6a 02 s....|..j..|.....r..d..S|..j..j.
06a0 00 74 03 00 6a 04 00 6b 02 00 72 68 00 7c 00 00 6a 05 00 7c 01 00 64 01 00 83 02 00 01 7c 01 00 .t..j..k..rh.|..j..|..d......|..
06c0 6a 06 00 83 00 00 7d 03 00 64 02 00 7c 03 00 5f 07 00 74 08 00 74 09 00 64 03 00 83 01 00 7c 03 j.....}..d..|.._..t..t..d.....|.
06e0 00 67 01 00 83 02 00 7d 03 00 6e 09 01 64 04 00 7c 02 00 6b 06 00 72 a7 00 74 0a 00 7c 02 00 64 .g.....}..n..d..|..k..r..t..|..d
0700 05 00 19 6a 06 00 83 00 00 7c 02 00 64 06 00 19 6a 06 00 83 00 00 7c 02 00 64 07 00 19 6a 06 00 ...j.....|..d...j.....|..d...j..
0720 83 00 00 83 03 00 7d 03 00 6e ca 00 64 08 00 7c 02 00 6b 06 00 72 c6 00 7c 02 00 64 09 00 19 6a ......}..n..d..|..k..r..|..d...j
0740 06 00 83 00 00 7d 03 00 6e 8a 00 64 0a 00 7c 02 00 6b 06 00 72 34 01 7c 02 00 64 0a 00 19 7d 04 .....}..n..d..|..k..r4.|..d...}.
0760 00 7c 04 00 6a 02 00 74 03 00 6a 0b 00 6b 02 00 72 34 01 7c 04 00 6a 0c 00 64 0b 00 19 6a 02 00 .|..j..t..j..k..r4.|..j..d...j..
0780 74 0d 00 6a 0e 00 6b 02 00 72 34 01 7c 04 00 6a 0c 00 64 0b 00 19 6a 0f 00 64 0c 00 6b 02 00 72 t..j..k..r4.|..j..d...j..d..k..r
07a0 34 01 7c 00 00 6a 05 00 7c 01 00 64 0d 00 83 02 00 01 64 00 00 53 6e 00 00 74 10 00 7c 01 00 83 4.|..j..|..d......d..Sn..t..|...
07c0 01 00 72 44 01 64 00 00 53 7c 01 00 6a 06 00 83 00 00 7d 03 00 64 02 00 7c 03 00 5f 07 00 74 08 ..rD.d..S|..j.....}..d..|.._..t.
07e0 00 74 09 00 64 03 00 83 01 00 7c 03 00 67 01 00 83 02 00 7d 03 00 7c 01 00 6a 07 00 7c 03 00 5f .t..d.....|..g.....}..|..j..|.._
0800 07 00 7c 03 00 53 28 0e 00 00 00 4e 73 1e 00 00 00 59 6f 75 20 73 68 6f 75 6c 64 20 75 73 65 20 ..|..S(....Ns....You.should.use.
0820 61 20 66 6f 72 20 6c 6f 6f 70 20 68 65 72 65 75 00 00 00 00 75 04 00 00 00 6c 69 73 74 74 0a 00 a.for.loop.hereu....u....listt..
0840 00 00 6d 61 70 5f 6c 61 6d 62 64 61 74 02 00 00 00 78 70 74 02 00 00 00 66 70 74 02 00 00 00 69 ..map_lambdat....xpt....fpt....i
0860 74 74 08 00 00 00 6d 61 70 5f 6e 6f 6e 65 74 03 00 00 00 61 72 67 74 07 00 00 00 61 72 67 6c 69 tt....map_nonet....argt....argli
0880 73 74 69 00 00 00 00 74 04 00 00 00 4e 6f 6e 65 73 6a 00 00 00 63 61 6e 6e 6f 74 20 63 6f 6e 76 sti....t....Nonesj...cannot.conv
08a0 65 72 74 20 6d 61 70 28 4e 6f 6e 65 2c 20 2e 2e 2e 29 20 77 69 74 68 20 6d 75 6c 74 69 70 6c 65 ert.map(None,....).with.multiple
08c0 20 61 72 67 75 6d 65 6e 74 73 20 62 65 63 61 75 73 65 20 6d 61 70 28 29 20 6e 6f 77 20 74 72 75 .arguments.because.map().now.tru
08e0 6e 63 61 74 65 73 20 74 6f 20 74 68 65 20 73 68 6f 72 74 65 73 74 20 73 65 71 75 65 6e 63 65 28 ncates.to.the.shortest.sequence(
0900 12 00 00 00 74 0b 00 00 00 73 68 6f 75 6c 64 5f 73 6b 69 70 74 06 00 00 00 70 61 72 65 6e 74 74 ....t....should_skipt....parentt
0920 04 00 00 00 74 79 70 65 74 04 00 00 00 73 79 6d 73 74 0b 00 00 00 73 69 6d 70 6c 65 5f 73 74 6d ....typet....symst....simple_stm
0940 74 74 07 00 00 00 77 61 72 6e 69 6e 67 74 05 00 00 00 63 6c 6f 6e 65 74 06 00 00 00 70 72 65 66 tt....warningt....clonet....pref
0960 69 78 52 03 00 00 00 52 02 00 00 00 52 04 00 00 00 52 0e 00 00 00 74 08 00 00 00 63 68 69 6c 64 ixR....R....R....R....t....child
0980 72 65 6e 52 00 00 00 00 74 04 00 00 00 4e 41 4d 45 74 05 00 00 00 76 61 6c 75 65 52 05 00 00 00 renR....t....NAMEt....valueR....
09a0 52 0f 00 00 00 28 05 00 00 00 74 04 00 00 00 73 65 6c 66 74 04 00 00 00 6e 6f 64 65 74 07 00 00 R....(....t....selft....nodet...
09c0 00 72 65 73 75 6c 74 73 74 03 00 00 00 6e 65 77 74 04 00 00 00 61 72 67 73 28 00 00 00 00 28 00 .resultst....newt....args(....(.
09e0 00 00 00 73 5d 00 00 00 2f 74 6d 70 2f 6e 64 6b 2d 55 73 65 72 2f 62 75 69 6c 64 68 6f 73 74 2f ...s].../tmp/ndk-User/buildhost/
0a00 69 6e 73 74 61 6c 6c 2f 70 72 65 62 75 69 6c 74 2f 64 61 72 77 69 6e 2d 78 38 36 5f 36 34 2f 6c install/prebuilt/darwin-x86_64/l
0a20 69 62 2f 70 79 74 68 6f 6e 32 2e 37 2f 6c 69 62 32 74 6f 33 2f 66 69 78 65 73 2f 66 69 78 5f 6d ib/python2.7/lib2to3/fixes/fix_m
0a40 61 70 2e 70 79 74 09 00 00 00 74 72 61 6e 73 66 6f 72 6d 3b 00 00 00 73 36 00 00 00 00 01 0f 01 ap.pyt....transform;...s6.......
0a60 04 02 15 01 10 01 0c 01 09 01 1b 01 0c 01 10 01 0d 01 16 02 0c 01 13 02 0c 01 0a 01 12 01 19 01 ................................
0a80 16 01 10 03 07 01 0c 01 04 01 0c 01 09 01 18 01 0c 01 28 07 00 00 00 74 08 00 00 00 5f 5f 6e 61 ..................(....t....__na
0aa0 6d 65 5f 5f 74 0a 00 00 00 5f 5f 6d 6f 64 75 6c 65 5f 5f 74 04 00 00 00 54 72 75 65 74 0d 00 00 me__t....__module__t....Truet...
0ac0 00 42 4d 5f 63 6f 6d 70 61 74 69 62 6c 65 74 07 00 00 00 50 41 54 54 45 52 4e 74 07 00 00 00 73 .BM_compatiblet....PATTERNt....s
0ae0 6b 69 70 5f 6f 6e 52 20 00 00 00 28 00 00 00 00 28 00 00 00 00 28 00 00 00 00 73 5d 00 00 00 2f kip_onR....(....(....(....s].../
0b00 74 6d 70 2f 6e 64 6b 2d 55 73 65 72 2f 62 75 69 6c 64 68 6f 73 74 2f 69 6e 73 74 61 6c 6c 2f 70 tmp/ndk-User/buildhost/install/p
0b20 72 65 62 75 69 6c 74 2f 64 61 72 77 69 6e 2d 78 38 36 5f 36 34 2f 6c 69 62 2f 70 79 74 68 6f 6e rebuilt/darwin-x86_64/lib/python
0b40 32 2e 37 2f 6c 69 62 32 74 6f 33 2f 66 69 78 65 73 2f 66 69 78 5f 6d 61 70 2e 70 79 52 07 00 00 2.7/lib2to3/fixes/fix_map.pyR...
0b60 00 1c 00 00 00 73 08 00 00 00 06 01 06 1a 06 02 06 02 4e 28 0f 00 00 00 74 07 00 00 00 5f 5f 64 .....s............N(....t....__d
0b80 6f 63 5f 5f 74 05 00 00 00 70 67 65 6e 32 52 00 00 00 00 74 00 00 00 00 52 01 00 00 00 74 0a 00 oc__t....pgen2R....t....R....t..
0ba0 00 00 66 69 78 65 72 5f 75 74 69 6c 52 02 00 00 00 52 03 00 00 00 52 04 00 00 00 52 05 00 00 00 ..fixer_utilR....R....R....R....
0bc0 74 06 00 00 00 70 79 67 72 61 6d 52 06 00 00 00 52 13 00 00 00 74 0e 00 00 00 43 6f 6e 64 69 74 t....pygramR....R....t....Condit
0be0 69 6f 6e 61 6c 46 69 78 52 07 00 00 00 28 00 00 00 00 28 00 00 00 00 28 00 00 00 00 73 5d 00 00 ionalFixR....(....(....(....s]..
0c00 00 2f 74 6d 70 2f 6e 64 6b 2d 55 73 65 72 2f 62 75 69 6c 64 68 6f 73 74 2f 69 6e 73 74 61 6c 6c ./tmp/ndk-User/buildhost/install
0c20 2f 70 72 65 62 75 69 6c 74 2f 64 61 72 77 69 6e 2d 78 38 36 5f 36 34 2f 6c 69 62 2f 70 79 74 68 /prebuilt/darwin-x86_64/lib/pyth
0c40 6f 6e 32 2e 37 2f 6c 69 62 32 74 6f 33 2f 66 69 78 65 73 2f 66 69 78 5f 6d 61 70 2e 70 79 74 08 on2.7/lib2to3/fixes/fix_map.pyt.
0c60 00 00 00 3c 6d 6f 64 75 6c 65 3e 14 00 00 00 73 0a 00 00 00 06 03 10 01 10 01 22 01 10 02 ...<module>....s.........."...