X-Git-Url: https://git.llucax.com/software/sercom.git/blobdiff_plain/f6c431c207c6c246295dea5d91f49043c4cd122a..642103e288af6eade0bb96ba2c6afd62cfb86f84:/sercom/tester.py diff --git a/sercom/tester.py b/sercom/tester.py index 4f381f1..abc1d90 100644 --- a/sercom/tester.py +++ b/sercom/tester.py @@ -441,7 +441,7 @@ def ejecutar_comando_fuente(self, path, entrega): #{{{ 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: @@ -456,7 +456,7 @@ def ejecutar_comando_fuente(self, path, entrega): #{{{ 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 @@ -652,7 +652,7 @@ def ejecutar_comando_prueba(self, path, prueba): #{{{ 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: @@ -667,7 +667,7 @@ def ejecutar_comando_prueba(self, path, prueba): #{{{ 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