예제 #1
0
 def get_header_text(a_rng: Tuple[int, int],
                     b_rng: Tuple[int, int],
                     affix: str = '@@') -> str:
     """Provide header for any ranges."""
     a_rng = format_range_unified(*a_rng)
     b_rng = format_range_unified(*b_rng)
     return '{0} -{1} +{2} {0}'.format(affix, a_rng, b_rng)
예제 #2
0
파일: diff.py 프로젝트: Zeffar/Elobot
 def get_header_text(a_rng, b_rng, affix='@@'):
     """Provide header for any ranges."""
     a_rng = format_range_unified(*a_rng)
     b_rng = format_range_unified(*b_rng)
     return '{0} -{1} +{2} {0}'.format(affix, a_rng, b_rng)
예제 #3
0
 def get_header_text(a_rng, b_rng, affix='@@'):
     """Provide header for any ranges."""
     a_rng = format_range_unified(*a_rng)
     b_rng = format_range_unified(*b_rng)
     return '{0} -{1} +{2} {0}'.format(affix, a_rng, b_rng)