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