X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=doc%2Fmanual%2Fpptex.py;fp=doc%2Fmanual%2Fpptex.py;h=91425a0606c9a7af8ace7c8067df75fd7e969ee8;hb=5268bf59c16f9259016e5f4d3234b55b2a53d0b1;hp=85653e5a545df6a2aa47795106a3aa4737b008d6;hpb=833b5eea81724fe7febea866387b112eb4685b3f;p=dcpomatic.git diff --git a/doc/manual/pptex.py b/doc/manual/pptex.py index 85653e5a5..91425a060 100755 --- a/doc/manual/pptex.py +++ b/doc/manual/pptex.py @@ -14,15 +14,15 @@ import tempfile import shutil f = open(sys.argv[1]) -t = tempfile.NamedTemporaryFile(delete = False) +t = tempfile.NamedTemporaryFile(delete=False) remove_next = False -while 1: +while True: l = f.readline() if l == '': break if not remove_next: - print>>t,l, + t.write(l.encode('UTF-8')) remove_next = False