From e6fa7d2dbfc30033a9f505e2fefa4abab5bc722d Mon Sep 17 00:00:00 2001 From: test Date: Thu, 25 Apr 2024 06:27:37 +0000 Subject: [PATCH] texlive scanpages resolving Python3 print formatting errors --- doc/latex/scanpages/replicate.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/latex/scanpages/replicate.py b/doc/latex/scanpages/replicate.py index 57a5978..a9af1df 100755 --- a/doc/latex/scanpages/replicate.py +++ b/doc/latex/scanpages/replicate.py @@ -10,7 +10,7 @@ with open(filename,'r') as f: s='\n'.join(tmp) tmp=s.split("%Repetitions=") if len(tmp) != 2: - print "Bailing! The file does not contain exactly one '%Repetitions='" + print("Bailing! The file does not contain exactly one '%Repetitions='") sys.exit() ss=tmp[1] tmp2=ss.split('\n') @@ -18,7 +18,7 @@ numrep=int(tmp2[0]) #get variable names tmp=s.split("%Variables=") if len(tmp) != 2: - print "Bailing! The file does not contain exactly one '%Variables='" + print("Bailing! The file does not contain exactly one '%Variables='") sys.exit() ss=tmp[1] tmp2=ss.split('\n') @@ -35,7 +35,7 @@ for j in range(1,n): vbles[j]=vbles[j].strip().replace("+",":") x=vbles[j].split(":") if len(x) != 3: - print "Bad variable descriptor-- " + vbles[j] + print("Bad variable descriptor-- " + vbles[j]) sys.exit vlst.append(x[0]) nnn=0 -- 2.43.0