]> git.proxmox.com Git - mirror_edk2.git/blame - AppPkg/Applications/Python/Python-2.7.2/Lib/test/inspect_fodder.py
EmbeddedPkg: Extend NvVarStoreFormattedLib LIBRARY_CLASS
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.2 / Lib / test / inspect_fodder.py
CommitLineData
4710c53d 1# line 1\r
2'A module docstring.'\r
3\r
4import sys, inspect\r
5# line 5\r
6\r
7# line 7\r
8def spam(a, b, c, d=3, (e, (f,))=(4, (5,)), *g, **h):\r
9 eggs(b + d, c + f)\r
10\r
11# line 11\r
12def eggs(x, y):\r
13 "A docstring."\r
14 global fr, st\r
15 fr = inspect.currentframe()\r
16 st = inspect.stack()\r
17 p = x\r
18 q = y // 0\r
19\r
20# line 20\r
21class StupidGit:\r
22 """A longer,\r
23\r
24 indented\r
25\r
26 docstring."""\r
27# line 27\r
28\r
29 def abuse(self, a, b, c):\r
30 """Another\r
31\r
32\tdocstring\r
33\r
34 containing\r
35\r
36\ttabs\r
37\t\r
38 """\r
39 self.argue(a, b, c)\r
40# line 40\r
41 def argue(self, a, b, c):\r
42 try:\r
43 spam(a, b, c)\r
44 except:\r
45 self.ex = sys.exc_info()\r
46 self.tr = inspect.trace()\r
47\r
48# line 48\r
49class MalodorousPervert(StupidGit):\r
50 pass\r
51\r
52class ParrotDroppings:\r
53 pass\r
54\r
55class FesteringGob(MalodorousPervert, ParrotDroppings):\r
56 pass\r