if longname is None:
longname = name
new = file(new, 'r').readlines()
- orig = zip_in.read(name).split('\n')
+ orig = zip_in.read(name).splitlines(True)
udiff = ''.join(list(unified_diff(orig, new, fromfile=name+'.'+origname,
tofile=name+'.'+newname)))
if udiff:
if longname is None:
longname = name
new = file(new, 'r').readlines()
- orig = zip_in.read(name).split('\n')
+ orig = zip_in.read(name).splitlines(True)
udiff = ''.join(list(unified_diff(orig, new, fromfile=name+'.'+origname,
tofile=name+'.'+newname)))
if udiff: