summaryrefslogtreecommitdiff
path: root/lib/python2.7/commands.pyo
blob: 9aaaeca4761da3bb4df47dcd548fe54611257c2a (plain)
ofshex dumpascii
0000 03 f3 0d 0a 4c 5c ac 51 63 00 00 00 00 00 00 00 00 04 00 00 00 40 00 00 00 73 69 00 00 00 64 00 ....L\.Qc............@...si...d.
0020 00 5a 00 00 64 01 00 64 02 00 6c 01 00 6d 02 00 5a 02 00 01 65 02 00 64 03 00 64 04 00 64 05 00 .Z..d..d..l..m..Z...e..d..d..d..
0040 83 01 01 01 5b 02 00 64 06 00 64 07 00 64 08 00 67 03 00 5a 03 00 64 09 00 84 00 00 5a 04 00 64 ....[..d..d..d..g..Z..d.....Z..d
0060 0a 00 84 00 00 5a 05 00 64 0b 00 84 00 00 5a 06 00 64 0c 00 84 00 00 5a 07 00 64 0d 00 84 00 00 .....Z..d.....Z..d.....Z..d.....
0080 5a 08 00 64 0e 00 53 28 0f 00 00 00 73 2d 02 00 00 45 78 65 63 75 74 65 20 73 68 65 6c 6c 20 63 Z..d..S(....s-...Execute.shell.c
00a0 6f 6d 6d 61 6e 64 73 20 76 69 61 20 6f 73 2e 70 6f 70 65 6e 28 29 20 61 6e 64 20 72 65 74 75 72 ommands.via.os.popen().and.retur
00c0 6e 20 73 74 61 74 75 73 2c 20 6f 75 74 70 75 74 2e 0a 0a 49 6e 74 65 72 66 61 63 65 20 73 75 6d n.status,.output...Interface.sum
00e0 6d 61 72 79 3a 0a 0a 20 20 20 20 20 20 20 69 6d 70 6f 72 74 20 63 6f 6d 6d 61 6e 64 73 0a 0a 20 mary:.........import.commands...
0100 20 20 20 20 20 20 6f 75 74 74 65 78 74 20 3d 20 63 6f 6d 6d 61 6e 64 73 2e 67 65 74 6f 75 74 70 ......outtext.=.commands.getoutp
0120 75 74 28 63 6d 64 29 0a 20 20 20 20 20 20 20 28 65 78 69 74 73 74 61 74 75 73 2c 20 6f 75 74 74 ut(cmd)........(exitstatus,.outt
0140 65 78 74 29 20 3d 20 63 6f 6d 6d 61 6e 64 73 2e 67 65 74 73 74 61 74 75 73 6f 75 74 70 75 74 28 ext).=.commands.getstatusoutput(
0160 63 6d 64 29 0a 20 20 20 20 20 20 20 6f 75 74 74 65 78 74 20 3d 20 63 6f 6d 6d 61 6e 64 73 2e 67 cmd)........outtext.=.commands.g
0180 65 74 73 74 61 74 75 73 28 66 69 6c 65 29 20 20 23 20 72 65 74 75 72 6e 73 20 6f 75 74 70 75 74 etstatus(file)..#.returns.output
01a0 20 6f 66 20 22 6c 73 20 2d 6c 64 20 66 69 6c 65 22 0a 0a 41 20 74 72 61 69 6c 69 6e 67 20 6e 65 .of."ls.-ld.file"..A.trailing.ne
01c0 77 6c 69 6e 65 20 69 73 20 72 65 6d 6f 76 65 64 20 66 72 6f 6d 20 74 68 65 20 6f 75 74 70 75 74 wline.is.removed.from.the.output
01e0 20 73 74 72 69 6e 67 2e 0a 0a 45 6e 63 61 70 73 75 6c 61 74 65 73 20 74 68 65 20 62 61 73 69 63 .string...Encapsulates.the.basic
0200 20 6f 70 65 72 61 74 69 6f 6e 3a 0a 0a 20 20 20 20 20 20 70 69 70 65 20 3d 20 6f 73 2e 70 6f 70 .operation:........pipe.=.os.pop
0220 65 6e 28 27 7b 20 27 20 2b 20 63 6d 64 20 2b 20 27 3b 20 7d 20 32 3e 26 31 27 2c 20 27 72 27 29 en('{.'.+.cmd.+.';.}.2>&1',.'r')
0240 0a 20 20 20 20 20 20 74 65 78 74 20 3d 20 70 69 70 65 2e 72 65 61 64 28 29 0a 20 20 20 20 20 20 .......text.=.pipe.read().......
0260 73 74 73 20 3d 20 70 69 70 65 2e 63 6c 6f 73 65 28 29 0a 0a 20 5b 4e 6f 74 65 3a 20 20 69 74 20 sts.=.pipe.close()...[Note:..it.
0280 77 6f 75 6c 64 20 62 65 20 6e 69 63 65 20 74 6f 20 61 64 64 20 66 75 6e 63 74 69 6f 6e 73 20 74 would.be.nice.to.add.functions.t
02a0 6f 20 69 6e 74 65 72 70 72 65 74 20 74 68 65 20 65 78 69 74 20 73 74 61 74 75 73 2e 5d 0a 69 ff o.interpret.the.exit.status.].i.
02c0 ff ff ff 28 01 00 00 00 74 08 00 00 00 77 61 72 6e 70 79 33 6b 73 55 00 00 00 74 68 65 20 63 6f ...(....t....warnpy3ksU...the.co
02e0 6d 6d 61 6e 64 73 20 6d 6f 64 75 6c 65 20 68 61 73 20 62 65 65 6e 20 72 65 6d 6f 76 65 64 20 69 mmands.module.has.been.removed.i
0300 6e 20 50 79 74 68 6f 6e 20 33 2e 30 3b 20 75 73 65 20 74 68 65 20 73 75 62 70 72 6f 63 65 73 73 n.Python.3.0;.use.the.subprocess
0320 20 6d 6f 64 75 6c 65 20 69 6e 73 74 65 61 64 74 0a 00 00 00 73 74 61 63 6b 6c 65 76 65 6c 69 02 .module.insteadt....stackleveli.
0340 00 00 00 74 0f 00 00 00 67 65 74 73 74 61 74 75 73 6f 75 74 70 75 74 74 09 00 00 00 67 65 74 6f ...t....getstatusoutputt....geto
0360 75 74 70 75 74 74 09 00 00 00 67 65 74 73 74 61 74 75 73 63 01 00 00 00 02 00 00 00 04 00 00 00 utputt....getstatusc............
0380 43 00 00 00 73 33 00 00 00 64 01 00 64 02 00 6c 00 00 7d 01 00 7c 01 00 6a 01 00 64 03 00 74 02 C...s3...d..d..l..}..|..j..d..t.
03a0 00 64 04 00 83 03 00 01 74 03 00 64 05 00 74 04 00 7c 00 00 83 01 00 17 83 01 00 53 28 06 00 00 .d......t..d..t..|.........S(...
03c0 00 73 2d 00 00 00 52 65 74 75 72 6e 20 6f 75 74 70 75 74 20 6f 66 20 22 6c 73 20 2d 6c 64 20 3c .s-...Return.output.of."ls.-ld.<
03e0 66 69 6c 65 3e 22 20 69 6e 20 61 20 73 74 72 69 6e 67 2e 69 ff ff ff ff 4e 73 22 00 00 00 63 6f file>".in.a.string.i....Ns"...co
0400 6d 6d 61 6e 64 73 2e 67 65 74 73 74 61 74 75 73 28 29 20 69 73 20 64 65 70 72 65 63 61 74 65 64 mmands.getstatus().is.deprecated
0420 69 02 00 00 00 73 06 00 00 00 6c 73 20 2d 6c 64 28 05 00 00 00 74 08 00 00 00 77 61 72 6e 69 6e i....s....ls.-ld(....t....warnin
0440 67 73 74 04 00 00 00 77 61 72 6e 74 12 00 00 00 44 65 70 72 65 63 61 74 69 6f 6e 57 61 72 6e 69 gst....warnt....DeprecationWarni
0460 6e 67 52 03 00 00 00 74 05 00 00 00 6d 6b 61 72 67 28 02 00 00 00 74 04 00 00 00 66 69 6c 65 52 ngR....t....mkarg(....t....fileR
0480 05 00 00 00 28 00 00 00 00 28 00 00 00 00 73 50 00 00 00 2f 74 6d 70 2f 6e 64 6b 2d 55 73 65 72 ....(....(....sP.../tmp/ndk-User
04a0 2f 62 75 69 6c 64 68 6f 73 74 2f 69 6e 73 74 61 6c 6c 2f 70 72 65 62 75 69 6c 74 2f 64 61 72 77 /buildhost/install/prebuilt/darw
04c0 69 6e 2d 78 38 36 5f 36 34 2f 6c 69 62 2f 70 79 74 68 6f 6e 32 2e 37 2f 63 6f 6d 6d 61 6e 64 73 in-x86_64/lib/python2.7/commands
04e0 2e 70 79 52 04 00 00 00 25 00 00 00 73 06 00 00 00 00 02 0c 01 13 01 63 01 00 00 00 01 00 00 00 .pyR....%...s..........c........
0500 02 00 00 00 43 00 00 00 73 0e 00 00 00 74 00 00 7c 00 00 83 01 00 64 01 00 19 53 28 02 00 00 00 ....C...s....t..|.....d...S(....
0520 73 3d 00 00 00 52 65 74 75 72 6e 20 6f 75 74 70 75 74 20 28 73 74 64 6f 75 74 20 6f 72 20 73 74 s=...Return.output.(stdout.or.st
0540 64 65 72 72 29 20 6f 66 20 65 78 65 63 75 74 69 6e 67 20 63 6d 64 20 69 6e 20 61 20 73 68 65 6c derr).of.executing.cmd.in.a.shel
0560 6c 2e 69 01 00 00 00 28 01 00 00 00 52 02 00 00 00 28 01 00 00 00 74 03 00 00 00 63 6d 64 28 00 l.i....(....R....(....t....cmd(.
0580 00 00 00 28 00 00 00 00 73 50 00 00 00 2f 74 6d 70 2f 6e 64 6b 2d 55 73 65 72 2f 62 75 69 6c 64 ...(....sP.../tmp/ndk-User/build
05a0 68 6f 73 74 2f 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 host/install/prebuilt/darwin-x86
05c0 5f 36 34 2f 6c 69 62 2f 70 79 74 68 6f 6e 32 2e 37 2f 63 6f 6d 6d 61 6e 64 73 2e 70 79 52 03 00 _64/lib/python2.7/commands.pyR..
05e0 00 00 30 00 00 00 73 02 00 00 00 00 02 63 01 00 00 00 05 00 00 00 03 00 00 00 43 00 00 00 73 7a ..0...s......c............C...sz
0600 00 00 00 64 01 00 64 02 00 6c 00 00 7d 01 00 7c 01 00 6a 01 00 64 03 00 7c 00 00 17 64 04 00 17 ...d..d..l..}..|..j..d..|...d...
0620 64 05 00 83 02 00 7d 02 00 7c 02 00 6a 02 00 83 00 00 7d 03 00 7c 02 00 6a 03 00 83 00 00 7d 04 d.....}..|..j.....}..|..j.....}.
0640 00 7c 04 00 64 02 00 6b 08 00 72 53 00 64 06 00 7d 04 00 6e 00 00 7c 03 00 64 01 00 1f 64 07 00 .|..d..k..rS.d..}..n..|..d...d..
0660 6b 02 00 72 70 00 7c 03 00 64 01 00 20 7d 03 00 6e 00 00 7c 04 00 7c 03 00 66 02 00 53 28 08 00 k..rp.|..d...}..n..|..|..f..S(..
0680 00 00 73 34 00 00 00 52 65 74 75 72 6e 20 28 73 74 61 74 75 73 2c 20 6f 75 74 70 75 74 29 20 6f ..s4...Return.(status,.output).o
06a0 66 20 65 78 65 63 75 74 69 6e 67 20 63 6d 64 20 69 6e 20 61 20 73 68 65 6c 6c 2e 69 ff ff ff ff f.executing.cmd.in.a.shell.i....
06c0 4e 73 02 00 00 00 7b 20 73 08 00 00 00 3b 20 7d 20 32 3e 26 31 74 01 00 00 00 72 69 00 00 00 00 Ns....{.s....;.}.2>&1t....ri....
06e0 73 01 00 00 00 0a 28 05 00 00 00 74 02 00 00 00 6f 73 74 05 00 00 00 70 6f 70 65 6e 74 04 00 00 s.....(....t....ost....popent...
0700 00 72 65 61 64 74 05 00 00 00 63 6c 6f 73 65 74 04 00 00 00 4e 6f 6e 65 28 05 00 00 00 52 0a 00 .readt....closet....None(....R..
0720 00 00 52 0c 00 00 00 74 04 00 00 00 70 69 70 65 74 04 00 00 00 74 65 78 74 74 03 00 00 00 73 74 ..R....t....pipet....textt....st
0740 73 28 00 00 00 00 28 00 00 00 00 73 50 00 00 00 2f 74 6d 70 2f 6e 64 6b 2d 55 73 65 72 2f 62 75 s(....(....sP.../tmp/ndk-User/bu
0760 69 6c 64 68 6f 73 74 2f 69 6e 73 74 61 6c 6c 2f 70 72 65 62 75 69 6c 74 2f 64 61 72 77 69 6e 2d ildhost/install/prebuilt/darwin-
0780 78 38 36 5f 36 34 2f 6c 69 62 2f 70 79 74 68 6f 6e 32 2e 37 2f 63 6f 6d 6d 61 6e 64 73 2e 70 79 x86_64/lib/python2.7/commands.py
07a0 52 02 00 00 00 38 00 00 00 73 12 00 00 00 00 02 0c 01 1a 01 0c 01 0c 01 0c 00 09 01 10 00 0d 01 R....8...s......................
07c0 63 02 00 00 00 03 00 00 00 04 00 00 00 43 00 00 00 73 25 00 00 00 64 01 00 64 00 00 6c 00 00 7d c............C...s%...d..d..l..}
07e0 02 00 74 01 00 7c 02 00 6a 02 00 6a 03 00 7c 00 00 7c 01 00 83 02 00 83 01 00 53 28 02 00 00 00 ..t..|..j..j..|..|........S(....
0800 4e 69 ff ff ff ff 28 04 00 00 00 52 0c 00 00 00 52 08 00 00 00 74 04 00 00 00 70 61 74 68 74 04 Ni....(....R....R....t....patht.
0820 00 00 00 6a 6f 69 6e 28 03 00 00 00 74 04 00 00 00 68 65 61 64 74 01 00 00 00 78 52 0c 00 00 00 ...join(....t....headt....xR....
0840 28 00 00 00 00 28 00 00 00 00 73 50 00 00 00 2f 74 6d 70 2f 6e 64 6b 2d 55 73 65 72 2f 62 75 69 (....(....sP.../tmp/ndk-User/bui
0860 6c 64 68 6f 73 74 2f 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 ldhost/install/prebuilt/darwin-x
0880 38 36 5f 36 34 2f 6c 69 62 2f 70 79 74 68 6f 6e 32 2e 37 2f 63 6f 6d 6d 61 6e 64 73 2e 70 79 74 86_64/lib/python2.7/commands.pyt
08a0 06 00 00 00 6d 6b 32 61 72 67 45 00 00 00 73 04 00 00 00 00 01 0c 01 63 01 00 00 00 03 00 00 00 ....mk2argE...s........c........
08c0 03 00 00 00 43 00 00 00 73 60 00 00 00 64 01 00 7c 00 00 6b 07 00 72 18 00 64 02 00 7c 00 00 17 ....C...s`...d..|..k..r..d..|...
08e0 64 01 00 17 53 64 03 00 7d 01 00 78 31 00 7c 00 00 44 5d 29 00 7d 02 00 7c 02 00 64 04 00 6b 06 d...Sd..}..x1.|..D]).}..|..d..k.
0900 00 72 44 00 7c 01 00 64 05 00 17 7d 01 00 6e 00 00 7c 01 00 7c 02 00 17 7d 01 00 71 25 00 57 7c .rD.|..d...}..n..|..|...}..q%.W|
0920 01 00 64 06 00 17 7d 01 00 7c 01 00 53 28 07 00 00 00 4e 73 01 00 00 00 27 73 02 00 00 00 20 27 ..d...}..|..S(....Ns....'s.....'
0940 73 02 00 00 00 20 22 73 04 00 00 00 5c 24 22 60 73 01 00 00 00 5c 74 01 00 00 00 22 28 00 00 00 s....."s....\$"`s....\t...."(...
0960 00 28 03 00 00 00 52 17 00 00 00 74 01 00 00 00 73 74 01 00 00 00 63 28 00 00 00 00 28 00 00 00 .(....R....t....st....c(....(...
0980 00 73 50 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 69 6e .sP.../tmp/ndk-User/buildhost/in
09a0 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 69 62 stall/prebuilt/darwin-x86_64/lib
09c0 2f 70 79 74 68 6f 6e 32 2e 37 2f 63 6f 6d 6d 61 6e 64 73 2e 70 79 52 08 00 00 00 51 00 00 00 73 /python2.7/commands.pyR....Q...s
09e0 12 00 00 00 00 01 0c 01 0c 01 06 01 0d 01 0c 01 0d 01 0e 01 0a 01 4e 28 09 00 00 00 74 07 00 00 ......................N(....t...
0a00 00 5f 5f 64 6f 63 5f 5f 52 05 00 00 00 52 00 00 00 00 74 07 00 00 00 5f 5f 61 6c 6c 5f 5f 52 04 .__doc__R....R....t....__all__R.
0a20 00 00 00 52 03 00 00 00 52 02 00 00 00 52 18 00 00 00 52 08 00 00 00 28 00 00 00 00 28 00 00 00 ...R....R....R....R....(....(...
0a40 00 28 00 00 00 00 73 50 00 00 00 2f 74 6d 70 2f 6e 64 6b 2d 55 73 65 72 2f 62 75 69 6c 64 68 6f .(....sP.../tmp/ndk-User/buildho
0a60 73 74 2f 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 st/install/prebuilt/darwin-x86_6
0a80 34 2f 6c 69 62 2f 70 79 74 68 6f 6e 32 2e 37 2f 63 6f 6d 6d 61 6e 64 73 2e 70 79 74 08 00 00 00 4/lib/python2.7/commands.pyt....
0aa0 3c 6d 6f 64 75 6c 65 3e 14 00 00 00 73 14 00 00 00 06 01 10 01 09 01 07 01 03 02 0f 0b 09 0b 09 <module>....s...................
0ac0 08 09 0d 09 0c .....