(self, name)
| 73 | pass |
| 74 | |
| 75 | def __getattr__(self, name): |
| 76 | if not name.startswith('_'): |
| 77 | if hasattr(self, '_'+name): |
| 78 | attr = getattr(self, '_'+name) |
| 79 | if isinstance(attr, types.MethodType): |
| 80 | return lambda func=self._try_call,attr=attr : func(attr) |
| 81 | else: |
| 82 | return lambda : None |
| 83 | raise AttributeError(name) |
| 84 | |
| 85 | def _getNCPUs(self): |
| 86 | return 1 |
nothing calls this directly
no test coverage detected