(module, sig)
| 5864 | 'context': P.getcontext()}} |
| 5865 | |
| 5866 | def mkargs(module, sig): |
| 5867 | args = [] |
| 5868 | kwargs = {} |
| 5869 | for name, param in sig.parameters.items(): |
| 5870 | if name == 'self': continue |
| 5871 | if param.kind == POS: |
| 5872 | args.append(pdict[module][name]) |
| 5873 | elif param.kind == POS_KWD: |
| 5874 | kwargs[name] = pdict[module][name] |
| 5875 | else: |
| 5876 | raise TestFailed("unexpected parameter kind") |
| 5877 | return args, kwargs |
| 5878 | |
| 5879 | def tr(s): |
| 5880 | """The C Context docstrings use 'x' in order to prevent confusion |
nothing calls this directly
no test coverage detected