Commit 916dbd98 authored by Sergio Costas's avatar Sergio Costas

Updated z80free_gencode.py to python3

parent d34d7028
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
# Copyright 2008-2009 (C) Raster Software Vigo (Sergio Costas)
......@@ -187,12 +187,10 @@ class generic_parser:
def show_error(self,msg_error):
print
print "Syntax error while processing file "+self.filename+".txt"
print "at line "+str(self.line_number)+" when processing instruction "+self.curr_instruction
print msg_error
print "Check the file and run again"
print
print("\nSyntax error while processing file {:s}.txt".format(self.filename))
print("at line {:d} when processing instruction {:s}".format(self.line_number, self.curr_instruction))
print(msg_error)
print("Check the file and run again\n")
self.file_out.close()
self.file_in.close()
sys.exit(1)
......
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