MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / _end_option

Method _end_option

thirdparty/clientform/clientform.py:603–618  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

601 self._option["disabled"] = None
602
603 def _end_option(self):
604 debug("")
605 if self._option is None:
606 raise ParseError("end of OPTION before start")
607
608 contents = self._option.get("contents", "").strip()
609 self._option["contents"] = contents
610 if "value" not in self._option:
611 self._option["value"] = contents
612 if "label" not in self._option:
613 self._option["label"] = contents
614 # stuff dict of SELECT HTML attrs into a special private key
615 # (gets deleted again later)
616 self._option["__select"] = self._select
617 self._append_select_control(self._option)
618 self._option = None
619
620 def _append_select_control(self, attrs):
621 debug("%s", attrs)

Callers 3

end_selectMethod · 0.95
_start_optionMethod · 0.95
end_optionMethod · 0.80

Calls 4

ParseErrorClass · 0.85
debugFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected