From 3d922261e1d6e34f82ddbdbf67eefa9e69fe406d Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Thu, 21 Jun 2018 15:28:40 +0200 Subject: [PATCH] fix line endings in hexdump2grafxpal.py --- tools/hexdump2grafxpal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/hexdump2grafxpal.py b/tools/hexdump2grafxpal.py index 39986eb6..0369d6d8 100644 --- a/tools/hexdump2grafxpal.py +++ b/tools/hexdump2grafxpal.py @@ -17,10 +17,10 @@ if finp_st.lower()=="--help".lower(): print "with a hex editor like KHexEdit or any other." else: finp_fl=open(finp_st,"r");fout_fl=open(fout_st,"w");ctr=0 - while True: + while True: text_st=finp_fl.readline() if len(text_st)==0:break - text_st=text_st.replace("\n","") + text_st=text_st.replace("\n","") while len(text_st)>0: bytecrop=hexvl(text_st[:2]) bc2=int(bytecrop/4)