X-Git-Url: https://git.llucax.com/z.facultad/75.52/sercom.git/blobdiff_plain/9d0df57ee29dde1e066dec6df9766e85ab4a06e2..61e87728c25085120d6cb7f8ee3480a35bb25e08:/sercom/tester.py?ds=sidebyside diff --git a/sercom/tester.py b/sercom/tester.py index 88dbe87..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: @@ -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: