1 2 3 4 5 6
from . import base class MatcherId(base.MatcherBase): def match(self, xml): return xml.get('id') == self._criteria