def segment_content_handler():
from ligo.lw.lsctables import (SegmentTable, SegmentDefTable,<EOL>SegmentSumTable)<EOL>from ligo.lw.ligolw import PartialLIGOLWContentHandler<EOL>def _filter(name, attrs):<EOL><INDENT>return reduce(<EOL>operator.or_,<EOL>[table_.CheckProperties(name, attrs) for<EOL>table_ in (SegmentTable, SegmentDefTable, SegmentSumTable)])<EOL><DEDENT>return build_content_handler(PartialLIGOLWContentHandler, _filter)<EOL>
Build a `~xml.sax.handlers.ContentHandler` to read segment XML tables