mdpage/diffpatch.py
def _reverse(self):
        """ reverse patch direction (this doesn't touch file_names) """
        for p in self.patches:
            for h in p.hunks:
                h.start_src, h.start_tgt = h.start_tgt, h.start_src
                h.lines_src, h.lines_tgt = h.lines_tgt, h.lines_src
                for i, line in enumerate(h.text):
                    if line[0] == '+':
                        h.text[i] = '-' + line[1:]
                    elif line[0] == '-':
                        h.text[i] = '+' + line[1:]
 reverse patch direction (this doesn't touch file_names) 
reverse patch direction (this doesn't touch file_names)
reverse patch direction ( this doesn ' t touch file_names )
def _reverse(self):
        for p in self.patches:
            for h in p.hunks:
                h.start_src, h.start_tgt = h.start_tgt, h.start_src
                h.lines_src, h.lines_tgt = h.lines_tgt, h.lines_src
                for i, line in enumerate(h.text):
                    if line[0] == '+':
                        h.text[i] = '-' + line[1:]
                    elif line[0] == '-':
                        h.text[i] = '+' + line[1:]
def _reverse ( self ) : for p in self . patches : for h in p . hunks : h . start_src , h . start_tgt = h . start_tgt , h . start_src h . lines_src , h . lines_tgt = h . lines_tgt , h . lines_src for i , line in enumerate ( h . text ) : if line [ 0 ] == '+' : h . text [ i ] = '-' + line [ 1 : ] elif line [ 0 ] == '-' : h . text [ i ] = '+' + line [ 1 : ]
reverse patch direction (this doesn't touch file_names)
reverse patch direction ( this doesn ' t touch file_names )
""" reverse patch direction (this doesn't touch file_names) """
self