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:
fromdesc=name+'.'+origname, todesc=name+'.'+newname,
context=True, numlines=3)
zip_out.writestr(name + '.diff', udiff)
- zip_out.writestr(name + '.diff.html', htmldiff)
+ zip_out.writestr(name + '.diff', htmldiff)
return True
else:
return False
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:
fromdesc=name+'.'+origname, todesc=name+'.'+newname,
context=True, numlines=3)
zip_out.writestr(name + '.diff', udiff)
- zip_out.writestr(name + '.diff.html', htmldiff)
+ zip_out.writestr(name + '.html', htmldiff)
return True
else:
return False