streamfield_tools/registry.py
def unregister_block(self, block_type):
        """
        Unregisters the block associated with `block_type` from the registry.

        If no block is registered to `block_type`, NotRegistered will raise.
        """
        if block_type not in self._registry:
            raise NotRegistered(
                'There is no block registered as "{}" with the '
                'RegisteredBlockStreamFieldRegistry registry.'.format(
                    block_type
                )
            )
        else:
            del self._registry[block_type]
def unregister_block(self, block_type):
        if block_type not in self._registry:
            raise NotRegistered(
                'There is no block registered as "{}" with the '
                'RegisteredBlockStreamFieldRegistry registry.'.format(
                    block_type
                )
            )
        else:
            del self._registry[block_type]
def unregister_block ( self , block_type ) : if block_type not in self . _registry : raise NotRegistered ( 'There is no block registered as "{}" with the ' 'RegisteredBlockStreamFieldRegistry registry.' . format ( block_type ) ) else : del self . _registry [ block_type ]
Unregisters the block associated with `block_type` from the registry.

        If no block is registered to `block_type`, NotRegistered will raise.
Unregisters the block associated with block_type from the registry .