Unregister that the input module should be pickled by value.
(module)
| 165 | |
| 166 | |
| 167 | def unregister_pickle_by_value(module): |
| 168 | """Unregister that the input module should be pickled by value.""" |
| 169 | if not isinstance(module, types.ModuleType): |
| 170 | raise ValueError(f"Input should be a module object, got {str(module)} instead") |
| 171 | if module.__name__ not in _PICKLE_BY_VALUE_MODULES: |
| 172 | raise ValueError(f"{module} is not registered for pickle by value") |
| 173 | else: |
| 174 | _PICKLE_BY_VALUE_MODULES.remove(module.__name__) |
| 175 | |
| 176 | |
| 177 | def list_registry_pickle_by_value(): |
no outgoing calls
searching dependent graphs…