]> git.lyx.org Git - lyx.git/blobdiff - lib/scripts/fen2ascii.py
Update Python scripts to Python 3+
[lyx.git] / lib / scripts / fen2ascii.py
index 74087440e20ed8890bca120435c9fe23b8279086..8a98bcbc92d5bd680dc1678289f7ee48c9019517 100644 (file)
@@ -9,12 +9,11 @@
 # 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)
 os.close(1)
-sys.stdin = open(sys.argv[1],"r")
+sys.stdin = open(sys.argv[1])
 sys.stdout = open(sys.argv[2],"w")
 
 line = sys.stdin.readline()