Ejemplo n.º 1
0
    def modified_lines_from_diff(self, diff):
        """Returns the changed lines in a diff.

        - Potentially this is vc specific (if not using udiff).

        Note: this returns the line numbers in descending order.

        """
        from pep8radius.diff import modified_lines_from_udiff
        for start, end in modified_lines_from_udiff(diff):
            yield start, end
Ejemplo n.º 2
0
    def modified_lines_from_diff(self, diff):
        """Returns the changed lines in a diff.

        - Potentially this is vc specific (if not using udiff).

        Note: this returns the line numbers in descending order.

        """
        from pep8radius.diff import modified_lines_from_udiff

        for start, end in modified_lines_from_udiff(diff):
            yield start, end
Ejemplo n.º 3
0
 def modified_lines(self, file_name):
     from pep8radius.diff import modified_lines_from_udiff
     diff = self.diffs[file_name]
     return list(modified_lines_from_udiff(diff))
Ejemplo n.º 4
0
 def modified_lines(self, file_name):
     from pep8radius.diff import modified_lines_from_udiff
     diff = self.diffs[file_name]
     return list(modified_lines_from_udiff(diff))