INNER CODE UNIT · Python

diff_word

mpenning/ciscoconfparse · ciscoconfparse/ccp_abc.py:316

    def diff_word(self):
        """A diff_word getter attribute (typically used in HDiff())"""
        return self._diff_word

    # On BaseCfgLine()
    @diff_word.setter
    @logger.catch(reraise=True)
    def diff_word(self, val):
        """A diff_word setter attribute (typically used in HDiff())"""

        # Check against expected HDiff() values...
        if self.diff_side == "before":
            assert val in set(
                {
                    "keep",
                    "remove",
                    "",
                }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…