mercurial/pure/bdiff.py
changeset 8225 46293a0c7e9f
parent 7944 e9b48afd0e78
child 10263 25e572394f5c
equal deleted inserted replaced
8224:1075f5c1b3fa 8225:46293a0c7e9f
     1 # bdiff.py - Python implementation of bdiff.c
     1 # bdiff.py - Python implementation of bdiff.c
     2 #
     2 #
     3 # Copyright 2009 Matt Mackall <mpm@selenic.com> and others
     3 # Copyright 2009 Matt Mackall <mpm@selenic.com> and others
     4 #
     4 #
     5 # This software may be used and distributed according to the terms
     5 # This software may be used and distributed according to the terms of the
     6 # of the GNU General Public License, incorporated herein by reference.
     6 # GNU General Public License version 2, incorporated herein by reference.
     7 
     7 
     8 import struct, difflib
     8 import struct, difflib
     9 
     9 
    10 def splitnewlines(text):
    10 def splitnewlines(text):
    11     '''like str.splitlines, but only split on newlines.'''
    11     '''like str.splitlines, but only split on newlines.'''