def _AddClearExtensionMethod(cls):
 def ClearExtension(self, extension_handle):
  _VerifyExtensionHandle(self, extension_handle)
  if (extension_handle in self._fields):
   del self._fields[extension_handle]
  self._Modified()
 cls.ClearExtension = ClearExtension

def _AddClearExtensionMethod ( cls ) : def ClearExtension ( self , extension_handle ) : _VerifyExtensionHandle ( self , extension_handle ) if ( extension_handle in self . _fields ) : del self . _fields [ extension_handle ] self . _Modified ( ) cls . ClearExtension = ClearExtension
helper for _addmessagemethods() .