INNER CODE UNIT · Python

diff_id_list

mpenning/ciscoconfparse · ciscoconfparse/ccp_abc.py:280

    def diff_id_list(self):
        """
        Return a list of integers as a context-sensitive diff identifier.

        The returned value includes line_id of all parents.  The oldest
        ancestor / parent line_id is last in the returned list of line_id
        hash values.

        object id integers are NOT the same between script runs.
        """
        retval = []
        len_geneology = len(self.geneology)

        for idx, obj in enumerate(self.geneology):
            # W0212: Access to a protected attribute (i.e. with leading underscore)
            obj._line_id = obj.calculate_line_id() # noqa: W0212

            # idx = 0 is the oldest ancestor

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…