def _AddClearExtensionMethod(cls):
def ClearExtension(self, extension_handle):<EOL><INDENT>_VerifyExtensionHandle(self, extension_handle)<EOL>if extension_handle in self._fields:<EOL><INDENT>del self._fields[extension_handle]<EOL><DEDENT>self._Modified()<EOL><DEDENT>cls.ClearExtension = ClearExtension<EOL>
Helper for _AddMessageMethods().