(
code: Any, glob: Dict[str, Any], loc: Optional[Optional[Mapping[str, Any]]] = None
)
| 135 | |
| 136 | |
| 137 | def exec_in( |
| 138 | code: Any, glob: Dict[str, Any], loc: Optional[Optional[Mapping[str, Any]]] = None |
| 139 | ) -> None: |
| 140 | if isinstance(code, str): |
| 141 | # exec(string) inherits the caller's future imports; compile |
| 142 | # the string first to prevent that. |
| 143 | code = compile(code, "<string>", "exec", dont_inherit=True) |
| 144 | exec(code, glob, loc) |
| 145 | |
| 146 | |
| 147 | def raise_exc_info( |
no outgoing calls