Commit 052089af authored by Sergio Costas's avatar Sergio Costas

Updated to python3 the other scripts

parent 916dbd98
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
# Copyright 2008-2009 (C) Raster Software Vigo (Sergio Costas)
......@@ -36,7 +36,7 @@ while True:
break
if test_name=="": # EOF
break
print test_name
print(test_name)
outfile.write(test_name)
linea=infile.readline()
while linea[:2]!="-1":
......@@ -51,7 +51,7 @@ while True:
if test_name2=="": #EOF
continue
if (test_name2!=test_name):
print "error, %(entrada)s y %(salida)s no coinciden"%{"entrada":test_name,"salida":test_name2}
print("error, %(entrada)s y %(salida)s no coinciden"%{"entrada":test_name,"salida":test_name2})
sys.exit(1)
port=[]
......@@ -64,16 +64,16 @@ while True:
continue
port.append(linea[pos+3:])
print linea
print(linea)
for element in port:
outfile.write(element)
outfile.write(" ")
outfile.write("-1\n")
outfile.write(linea) # registers
linea=expected.readline()
print linea
print(linea)
while (linea!="\n") and (linea!=""):
print linea
print(linea)
outfile.write(linea)
linea=expected.readline()
outfile.write("-1\n\n")
......
#!/usr/bin/env python
#!/usr/bin/env python3
import sys
......@@ -53,7 +53,7 @@ for linea in fichero1:
else:
nlinea=int(p1[:2],16)
except:
print p1
print(p1)
while contador2<nlinea:
escribe_linea(fichero2,contador2,"","")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment