(self, _meth=meth)
| 165 | """Decorator to skip if single-phase init modules are not supported.""" |
| 166 | if not isinstance(meth, type): |
| 167 | def meth(self, _meth=meth): |
| 168 | try: |
| 169 | return _meth(self) |
| 170 | finally: |
| 171 | restore__testsinglephase() |
| 172 | meth = cpython_only(meth) |
| 173 | msg = "gh-117694: free-threaded build does not currently support single-phase init modules in sub-interpreters" |
| 174 | meth = requires_gil_enabled(msg)(meth) |