def unregister_mimetype_handler(handler):
 if (not issubclass(handler, MimetypeHandler)):
  raise TypeError(u'Only MimetypeHandler subclasses can be unregistered')
 try:
  _registered_mimetype_handlers.remove(handler)
 except ValueError:
  logging.error((u'Failed to unregister missing mimetype handler %r' % handler))
  raise ValueError(u'This mimetype handler was not previously registered')

def unregister_mimetype_handler ( handler ) : if ( not issubclass ( handler , MimetypeHandler ) ) : raise TypeError ( u'Only MimetypeHandler subclasses can be unregistered' ) try : _registered_mimetype_handlers . remove ( handler ) except ValueError : logging . error ( ( u'Failed to unregister missing mimetype handler %r' % handler ) ) raise ValueError ( u'This mimetype handler was not previously registered' )
unregister a mimetypehandler class .