summaryrefslogtreecommitdiff
path: root/sys/lib/python/fnmatch.pyc
blob: 2eec0fd8e1b0dfe4bd8eb887307a53be964ca392 (plain)
ofshex dumpascii
0000 b3 f2 0d 0a a2 6c 87 4a 63 00 00 00 00 00 00 00 00 05 00 00 00 40 00 00 00 73 52 00 00 00 64 00 .....l.Jc............@...sR...d.
0020 00 5a 00 00 64 01 00 64 02 00 6b 01 00 5a 01 00 64 03 00 64 04 00 64 05 00 64 06 00 67 04 00 5a .Z..d..d..k..Z..d..d..d..d..g..Z
0040 02 00 68 00 00 5a 03 00 64 07 00 84 00 00 5a 04 00 64 08 00 84 00 00 5a 05 00 64 09 00 84 00 00 ..h..Z..d.....Z..d.....Z..d.....
0060 5a 06 00 64 0a 00 84 00 00 5a 07 00 64 02 00 53 28 0b 00 00 00 73 a3 01 00 00 46 69 6c 65 6e 61 Z..d.....Z..d..S(....s....Filena
0080 6d 65 20 6d 61 74 63 68 69 6e 67 20 77 69 74 68 20 73 68 65 6c 6c 20 70 61 74 74 65 72 6e 73 2e me.matching.with.shell.patterns.
00a0 0a 0a 66 6e 6d 61 74 63 68 28 46 49 4c 45 4e 41 4d 45 2c 20 50 41 54 54 45 52 4e 29 20 6d 61 74 ..fnmatch(FILENAME,.PATTERN).mat
00c0 63 68 65 73 20 61 63 63 6f 72 64 69 6e 67 20 74 6f 20 74 68 65 20 6c 6f 63 61 6c 20 63 6f 6e 76 ches.according.to.the.local.conv
00e0 65 6e 74 69 6f 6e 2e 0a 66 6e 6d 61 74 63 68 63 61 73 65 28 46 49 4c 45 4e 41 4d 45 2c 20 50 41 ention..fnmatchcase(FILENAME,.PA
0100 54 54 45 52 4e 29 20 61 6c 77 61 79 73 20 74 61 6b 65 73 20 63 61 73 65 20 69 6e 20 61 63 63 6f TTERN).always.takes.case.in.acco
0120 75 6e 74 2e 0a 0a 54 68 65 20 66 75 6e 63 74 69 6f 6e 73 20 6f 70 65 72 61 74 65 20 62 79 20 74 unt...The.functions.operate.by.t
0140 72 61 6e 73 6c 61 74 69 6e 67 20 74 68 65 20 70 61 74 74 65 72 6e 20 69 6e 74 6f 20 61 20 72 65 ranslating.the.pattern.into.a.re
0160 67 75 6c 61 72 0a 65 78 70 72 65 73 73 69 6f 6e 2e 20 20 54 68 65 79 20 63 61 63 68 65 20 74 68 gular.expression...They.cache.th
0180 65 20 63 6f 6d 70 69 6c 65 64 20 72 65 67 75 6c 61 72 20 65 78 70 72 65 73 73 69 6f 6e 73 20 66 e.compiled.regular.expressions.f
01a0 6f 72 20 73 70 65 65 64 2e 0a 0a 54 68 65 20 66 75 6e 63 74 69 6f 6e 20 74 72 61 6e 73 6c 61 74 or.speed...The.function.translat
01c0 65 28 50 41 54 54 45 52 4e 29 20 72 65 74 75 72 6e 73 20 61 20 72 65 67 75 6c 61 72 20 65 78 70 e(PATTERN).returns.a.regular.exp
01e0 72 65 73 73 69 6f 6e 0a 63 6f 72 72 65 73 70 6f 6e 64 69 6e 67 20 74 6f 20 50 41 54 54 45 52 4e ression.corresponding.to.PATTERN
0200 2e 20 20 28 49 74 20 64 6f 65 73 20 6e 6f 74 20 63 6f 6d 70 69 6c 65 20 69 74 2e 29 0a 69 ff ff ...(It.does.not.compile.it.).i..
0220 ff ff 4e 74 06 00 00 00 66 69 6c 74 65 72 74 07 00 00 00 66 6e 6d 61 74 63 68 74 0b 00 00 00 66 ..Nt....filtert....fnmatcht....f
0240 6e 6d 61 74 63 68 63 61 73 65 74 09 00 00 00 74 72 61 6e 73 6c 61 74 65 63 02 00 00 00 03 00 00 nmatchcaset....translatec.......
0260 00 04 00 00 00 43 00 00 00 73 3d 00 00 00 64 01 00 64 02 00 6b 00 00 7d 02 00 7c 02 00 69 01 00 .....C...s=...d..d..k..}..|..i..
0280 69 02 00 7c 00 00 83 01 00 7d 00 00 7c 02 00 69 01 00 69 02 00 7c 01 00 83 01 00 7d 01 00 74 03 i..|.....}..|..i..i..|.....}..t.
02a0 00 7c 00 00 7c 01 00 83 02 00 53 28 03 00 00 00 73 bd 01 00 00 54 65 73 74 20 77 68 65 74 68 65 .|..|.....S(....s....Test.whethe
02c0 72 20 46 49 4c 45 4e 41 4d 45 20 6d 61 74 63 68 65 73 20 50 41 54 54 45 52 4e 2e 0a 0a 20 20 20 r.FILENAME.matches.PATTERN......
02e0 20 50 61 74 74 65 72 6e 73 20 61 72 65 20 55 6e 69 78 20 73 68 65 6c 6c 20 73 74 79 6c 65 3a 0a .Patterns.are.Unix.shell.style:.
0300 0a 20 20 20 20 2a 20 20 20 20 20 20 20 6d 61 74 63 68 65 73 20 65 76 65 72 79 74 68 69 6e 67 0a .....*.......matches.everything.
0320 20 20 20 20 3f 20 20 20 20 20 20 20 6d 61 74 63 68 65 73 20 61 6e 79 20 73 69 6e 67 6c 65 20 63 ....?.......matches.any.single.c
0340 68 61 72 61 63 74 65 72 0a 20 20 20 20 5b 73 65 71 5d 20 20 20 6d 61 74 63 68 65 73 20 61 6e 79 haracter.....[seq]...matches.any
0360 20 63 68 61 72 61 63 74 65 72 20 69 6e 20 73 65 71 0a 20 20 20 20 5b 21 73 65 71 5d 20 20 6d 61 .character.in.seq.....[!seq]..ma
0380 74 63 68 65 73 20 61 6e 79 20 63 68 61 72 20 6e 6f 74 20 69 6e 20 73 65 71 0a 0a 20 20 20 20 41 tches.any.char.not.in.seq......A
03a0 6e 20 69 6e 69 74 69 61 6c 20 70 65 72 69 6f 64 20 69 6e 20 46 49 4c 45 4e 41 4d 45 20 69 73 20 n.initial.period.in.FILENAME.is.
03c0 6e 6f 74 20 73 70 65 63 69 61 6c 2e 0a 20 20 20 20 42 6f 74 68 20 46 49 4c 45 4e 41 4d 45 20 61 not.special......Both.FILENAME.a
03e0 6e 64 20 50 41 54 54 45 52 4e 20 61 72 65 20 66 69 72 73 74 20 63 61 73 65 2d 6e 6f 72 6d 61 6c nd.PATTERN.are.first.case-normal
0400 69 7a 65 64 0a 20 20 20 20 69 66 20 74 68 65 20 6f 70 65 72 61 74 69 6e 67 20 73 79 73 74 65 6d ized.....if.the.operating.system
0420 20 72 65 71 75 69 72 65 73 20 69 74 2e 0a 20 20 20 20 49 66 20 79 6f 75 20 64 6f 6e 27 74 20 77 .requires.it......If.you.don't.w
0440 61 6e 74 20 74 68 69 73 2c 20 75 73 65 20 66 6e 6d 61 74 63 68 63 61 73 65 28 46 49 4c 45 4e 41 ant.this,.use.fnmatchcase(FILENA
0460 4d 45 2c 20 50 41 54 54 45 52 4e 29 2e 0a 20 20 20 20 69 ff ff ff ff 4e 28 04 00 00 00 74 02 00 ME,.PATTERN)......i....N(....t..
0480 00 00 6f 73 74 04 00 00 00 70 61 74 68 74 08 00 00 00 6e 6f 72 6d 63 61 73 65 52 02 00 00 00 28 ..ost....patht....normcaseR....(
04a0 03 00 00 00 74 04 00 00 00 6e 61 6d 65 74 03 00 00 00 70 61 74 52 04 00 00 00 28 00 00 00 00 28 ....t....namet....patR....(....(
04c0 00 00 00 00 73 1a 00 00 00 2f 73 79 73 2f 6c 69 62 2f 70 79 74 68 6f 6e 2f 66 6e 6d 61 74 63 68 ....s..../sys/lib/python/fnmatch
04e0 2e 70 79 52 01 00 00 00 13 00 00 00 73 08 00 00 00 00 10 0c 01 12 01 12 01 63 02 00 00 00 08 00 .pyR........s............c......
0500 00 00 06 00 00 00 43 00 00 00 73 ef 00 00 00 64 01 00 64 02 00 6b 00 00 7d 02 00 64 01 00 64 02 ......C...s....d..d..k..}..d..d.
0520 00 6b 01 00 7d 03 00 67 00 00 7d 04 00 7c 02 00 69 02 00 69 03 00 7c 01 00 83 01 00 7d 01 00 7c .k..}..g..}..|..i..i..|.....}..|
0540 01 00 74 04 00 6a 07 00 6f 23 00 01 74 05 00 7c 01 00 83 01 00 7d 05 00 74 06 00 69 07 00 7c 05 ..t..j..o#..t..|.....}..t..i..|.
0560 00 83 01 00 74 04 00 7c 01 00 3c 6e 01 00 01 74 04 00 7c 01 00 19 69 08 00 7d 06 00 7c 02 00 69 ....t..|..<n...t..|...i..}..|..i
0580 02 00 7c 03 00 6a 08 00 6f 33 00 01 78 6b 00 7c 00 00 44 5d 24 00 7d 07 00 7c 06 00 7c 07 00 83 ..|..j..o3..xk.|..D]$.}..|..|...
05a0 01 00 6f 11 00 01 7c 04 00 69 09 00 7c 07 00 83 01 00 01 71 84 00 01 71 84 00 57 6e 3c 00 01 78 ..o...|..i..|......q...q..Wn<..x
05c0 38 00 7c 00 00 44 5d 30 00 7d 07 00 7c 06 00 7c 02 00 69 02 00 69 03 00 7c 07 00 83 01 00 83 01 8.|..D]0.}..|..|..i..i..|.......
05e0 00 6f 11 00 01 7c 04 00 69 09 00 7c 07 00 83 01 00 01 71 b7 00 01 71 b7 00 57 7c 04 00 53 28 03 .o...|..i..|......q...q..W|..S(.
0600 00 00 00 73 32 00 00 00 52 65 74 75 72 6e 20 74 68 65 20 73 75 62 73 65 74 20 6f 66 20 74 68 65 ...s2...Return.the.subset.of.the
0620 20 6c 69 73 74 20 4e 41 4d 45 53 20 74 68 61 74 20 6d 61 74 63 68 20 50 41 54 69 ff ff ff ff 4e .list.NAMES.that.match.PATi....N
0640 28 0a 00 00 00 52 04 00 00 00 74 09 00 00 00 70 6f 73 69 78 70 61 74 68 52 05 00 00 00 52 06 00 (....R....t....posixpathR....R..
0660 00 00 74 06 00 00 00 5f 63 61 63 68 65 52 03 00 00 00 74 02 00 00 00 72 65 74 07 00 00 00 63 6f ..t...._cacheR....t....ret....co
0680 6d 70 69 6c 65 74 05 00 00 00 6d 61 74 63 68 74 06 00 00 00 61 70 70 65 6e 64 28 08 00 00 00 74 mpilet....matcht....append(....t
06a0 05 00 00 00 6e 61 6d 65 73 52 08 00 00 00 52 04 00 00 00 52 09 00 00 00 74 06 00 00 00 72 65 73 ....namesR....R....R....t....res
06c0 75 6c 74 74 03 00 00 00 72 65 73 52 0d 00 00 00 52 07 00 00 00 28 00 00 00 00 28 00 00 00 00 73 ultt....resR....R....(....(....s
06e0 1a 00 00 00 2f 73 79 73 2f 6c 69 62 2f 70 79 74 68 6f 6e 2f 66 6e 6d 61 74 63 68 2e 70 79 52 00 ..../sys/lib/python/fnmatch.pyR.
0700 00 00 00 28 00 00 00 73 22 00 00 00 00 02 18 01 06 01 12 01 0d 01 0c 01 17 01 0d 01 10 02 07 00 ...(...s".......................
0720 06 01 0d 01 19 02 07 00 06 01 19 01 15 01 63 02 00 00 00 03 00 00 00 03 00 00 00 43 00 00 00 73 ..............c............C...s
0740 47 00 00 00 7c 01 00 74 00 00 6a 07 00 6f 23 00 01 74 01 00 7c 01 00 83 01 00 7d 02 00 74 02 00 G...|..t..j..o#..t..|.....}..t..
0760 69 03 00 7c 02 00 83 01 00 74 00 00 7c 01 00 3c 6e 01 00 01 74 00 00 7c 01 00 19 69 04 00 7c 00 i..|.....t..|..<n...t..|...i..|.
0780 00 83 01 00 64 01 00 6a 09 00 53 28 02 00 00 00 73 8f 00 00 00 54 65 73 74 20 77 68 65 74 68 65 ....d..j..S(....s....Test.whethe
07a0 72 20 46 49 4c 45 4e 41 4d 45 20 6d 61 74 63 68 65 73 20 50 41 54 54 45 52 4e 2c 20 69 6e 63 6c r.FILENAME.matches.PATTERN,.incl
07c0 75 64 69 6e 67 20 63 61 73 65 2e 0a 0a 20 20 20 20 54 68 69 73 20 69 73 20 61 20 76 65 72 73 69 uding.case.......This.is.a.versi
07e0 6f 6e 20 6f 66 20 66 6e 6d 61 74 63 68 28 29 20 77 68 69 63 68 20 64 6f 65 73 6e 27 74 20 63 61 on.of.fnmatch().which.doesn't.ca
0800 73 65 2d 6e 6f 72 6d 61 6c 69 7a 65 0a 20 20 20 20 69 74 73 20 61 72 67 75 6d 65 6e 74 73 2e 0a se-normalize.....its.arguments..
0820 20 20 20 20 4e 28 06 00 00 00 52 0a 00 00 00 52 03 00 00 00 52 0b 00 00 00 52 0c 00 00 00 52 0d ....N(....R....R....R....R....R.
0840 00 00 00 74 04 00 00 00 4e 6f 6e 65 28 03 00 00 00 52 07 00 00 00 52 08 00 00 00 52 11 00 00 00 ...t....None(....R....R....R....
0860 28 00 00 00 00 28 00 00 00 00 73 1a 00 00 00 2f 73 79 73 2f 6c 69 62 2f 70 79 74 68 6f 6e 2f 66 (....(....s..../sys/lib/python/f
0880 6e 6d 61 74 63 68 2e 70 79 52 02 00 00 00 3c 00 00 00 73 08 00 00 00 00 07 0d 01 0c 01 17 01 63 nmatch.pyR....<...s............c
08a0 01 00 00 00 07 00 00 00 05 00 00 00 43 00 00 00 73 c2 01 00 00 64 01 00 74 00 00 7c 00 00 83 01 ............C...s....d..t..|....
08c0 00 02 7d 01 00 7d 02 00 64 02 00 7d 03 00 78 9e 01 7c 01 00 7c 02 00 6a 00 00 6f 90 01 01 7c 00 ..}..}..d..}..x..|..|..j..o...|.
08e0 00 7c 01 00 19 7d 04 00 7c 01 00 64 03 00 17 7d 01 00 7c 04 00 64 04 00 6a 02 00 6f 0e 00 01 7c .|...}..|..d...}..|..d..j..o...|
0900 03 00 64 05 00 17 7d 03 00 71 1c 00 01 7c 04 00 64 06 00 6a 02 00 6f 0e 00 01 7c 03 00 64 07 00 ..d...}..q...|..d..j..o...|..d..
0920 17 7d 03 00 71 1c 00 01 7c 04 00 64 08 00 6a 02 00 6f 22 01 01 7c 01 00 7d 05 00 7c 05 00 7c 02 .}..q...|..d..j..o"..|..}..|..|.
0940 00 6a 00 00 6f 1f 00 01 7c 00 00 7c 05 00 19 64 09 00 6a 02 00 6f 0e 00 01 7c 05 00 64 03 00 17 .j..o...|..|...d..j..o...|..d...
0960 7d 05 00 6e 01 00 01 7c 05 00 7c 02 00 6a 00 00 6f 1f 00 01 7c 00 00 7c 05 00 19 64 0a 00 6a 02 }..n...|..|..j..o...|..|...d..j.
0980 00 6f 0e 00 01 7c 05 00 64 03 00 17 7d 05 00 6e 01 00 01 78 2d 00 7c 05 00 7c 02 00 6a 00 00 6f .o...|..d...}..n...x-.|..|..j..o
09a0 1f 00 01 7c 00 00 7c 05 00 19 64 0a 00 6a 03 00 6f 0e 00 01 7c 05 00 64 03 00 17 7d 05 00 71 e1 ...|..|...d..j..o...|..d...}..q.
09c0 00 01 57 7c 05 00 7c 02 00 6a 05 00 6f 0e 00 01 7c 03 00 64 0b 00 17 7d 03 00 71 b5 01 01 7c 00 ..W|..|..j..o...|..d...}..q...|.
09e0 00 7c 01 00 7c 05 00 21 69 01 00 64 0c 00 64 0d 00 83 02 00 7d 06 00 7c 05 00 64 03 00 17 7d 01 .|..|..!i..d..d.....}..|..d...}.
0a00 00 7c 06 00 64 01 00 19 64 09 00 6a 02 00 6f 12 00 01 64 0e 00 7c 06 00 64 03 00 1f 17 7d 06 00 .|..d...d..j..o...d..|..d....}..
0a20 6e 20 00 01 7c 06 00 64 01 00 19 64 0e 00 6a 02 00 6f 0e 00 01 64 0c 00 7c 06 00 17 7d 06 00 6e n...|..d...d..j..o...d..|...}..n
0a40 01 00 01 64 0f 00 7c 03 00 7c 06 00 66 02 00 16 7d 03 00 71 1c 00 01 7c 03 00 74 02 00 69 03 00 ...d..|..|..f...}..q...|..t..i..
0a60 7c 04 00 83 01 00 17 7d 03 00 71 1c 00 01 57 7c 03 00 64 10 00 17 53 28 11 00 00 00 73 66 00 00 |......}..q...W|..d...S(....sf..
0a80 00 54 72 61 6e 73 6c 61 74 65 20 61 20 73 68 65 6c 6c 20 50 41 54 54 45 52 4e 20 74 6f 20 61 20 .Translate.a.shell.PATTERN.to.a.
0aa0 72 65 67 75 6c 61 72 20 65 78 70 72 65 73 73 69 6f 6e 2e 0a 0a 20 20 20 20 54 68 65 72 65 20 69 regular.expression.......There.i
0ac0 73 20 6e 6f 20 77 61 79 20 74 6f 20 71 75 6f 74 65 20 6d 65 74 61 2d 63 68 61 72 61 63 74 65 72 s.no.way.to.quote.meta-character
0ae0 73 2e 0a 20 20 20 20 69 00 00 00 00 74 00 00 00 00 69 01 00 00 00 74 01 00 00 00 2a 73 02 00 00 s......i....t....i....t....*s...
0b00 00 2e 2a 74 01 00 00 00 3f 74 01 00 00 00 2e 74 01 00 00 00 5b 74 01 00 00 00 21 74 01 00 00 00 ..*t....?t.....t....[t....!t....
0b20 5d 73 02 00 00 00 5c 5b 73 01 00 00 00 5c 73 02 00 00 00 5c 5c 74 01 00 00 00 5e 73 06 00 00 00 ]s....\[s....\s....\\t....^s....
0b40 25 73 5b 25 73 5d 74 01 00 00 00 24 28 04 00 00 00 74 03 00 00 00 6c 65 6e 74 07 00 00 00 72 65 %s[%s]t....$(....t....lent....re
0b60 70 6c 61 63 65 52 0b 00 00 00 74 06 00 00 00 65 73 63 61 70 65 28 07 00 00 00 52 08 00 00 00 74 placeR....t....escape(....R....t
0b80 01 00 00 00 69 74 01 00 00 00 6e 52 11 00 00 00 74 01 00 00 00 63 74 01 00 00 00 6a 74 05 00 00 ....it....nR....t....ct....jt...
0ba0 00 73 74 75 66 66 28 00 00 00 00 28 00 00 00 00 73 1a 00 00 00 2f 73 79 73 2f 6c 69 62 2f 70 79 .stuff(....(....s..../sys/lib/py
0bc0 74 68 6f 6e 2f 66 6e 6d 61 74 63 68 2e 70 79 52 03 00 00 00 48 00 00 00 73 38 00 00 00 00 06 13 thon/fnmatch.pyR....H...s8......
0be0 01 06 01 10 01 0a 01 0a 01 0d 01 0e 01 0d 01 0e 01 0d 01 06 01 1e 01 0e 01 1e 01 0e 01 21 01 0f .............................!..
0c00 01 0d 01 0e 02 19 01 0a 01 11 01 12 01 11 01 0e 01 14 02 18 01 28 08 00 00 00 74 07 00 00 00 5f .....................(....t...._
0c20 5f 64 6f 63 5f 5f 52 0b 00 00 00 74 07 00 00 00 5f 5f 61 6c 6c 5f 5f 52 0a 00 00 00 52 01 00 00 _doc__R....t....__all__R....R...
0c40 00 52 00 00 00 00 52 02 00 00 00 52 03 00 00 00 28 00 00 00 00 28 00 00 00 00 28 00 00 00 00 73 .R....R....R....(....(....(....s
0c60 1a 00 00 00 2f 73 79 73 2f 6c 69 62 2f 70 79 74 68 6f 6e 2f 66 6e 6d 61 74 63 68 2e 70 79 73 08 ..../sys/lib/python/fnmatch.pys.
0c80 00 00 00 3c 6d 6f 64 75 6c 65 3e 0b 00 00 00 73 0e 00 00 00 06 02 0c 02 12 02 06 02 09 15 09 14 ...<module>....s................
0ca0 09 0c ..