From 55ad2b439dc03b110ef97eee05dd5e6151b39bf3 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Sat, 17 Mar 2007 21:22:30 +0000 Subject: [PATCH] =?utf8?q?Bugfix:=20fallaba=20diff=20por=20problemas=20de?= =?utf8?q?=20\n.=20A=20un=20archivo=20se=20le=20extirpaba=20los=20\n=20al?= =?utf8?q?=20hacer=20el=20split=20por=20l=C3=ADneas=20y=20a=20otro=20no,?= =?utf8?q?=20as=C3=AD=20que=20daban=20todos=20los=20diff=20mal.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- sercom/tester.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.43.0