X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Fscripts%2Ffen2ascii.py;h=74087440e20ed8890bca120435c9fe23b8279086;hb=1a36fee79dc2f4ce83f47db44c8093831d20e6c0;hp=d7f0fb3d775e9ba13f49bce98d17b33c3464b368;hpb=d142ab94efbd8fe4bced048e9e08a5ea92d713ca;p=lyx.git diff --git a/lib/scripts/fen2ascii.py b/lib/scripts/fen2ascii.py index d7f0fb3d77..74087440e2 100644 --- a/lib/scripts/fen2ascii.py +++ b/lib/scripts/fen2ascii.py @@ -9,6 +9,7 @@ # This script will convert a chess position in the FEN # format to an ascii representation of the position. +from __future__ import print_function import sys,string,os os.close(0) @@ -26,7 +27,7 @@ comp=string.split(line,'/') cont=1 margin= " "*6 -print margin+' +'+"-"*15+'+' +print (margin+' +'+"-"*15+'+') for i in range(8): cont = cont + 1 tmp="" @@ -42,7 +43,7 @@ for i in range(8): cont = cont + 1 row = 8 - i - print margin, row, tmp+"|" + print (margin, row, tmp+"|") -print margin+' +'+"-"*15+'+' -print margin+' a b c d e f g h ' +print (margin+' +'+"-"*15+'+') +print (margin+' a b c d e f g h ')