diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-09-24 22:48:33 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-09-24 22:48:33 +0200 |
| commit | 5268bf59c16f9259016e5f4d3234b55b2a53d0b1 (patch) | |
| tree | 3fcd3f5ccaf91dc8f28132516cbfbf48e8d3b9ac | |
| parent | 833b5eea81724fe7febea866387b112eb4685b3f (diff) | |
Python 3 compatibility for pptext.py
| -rwxr-xr-x | doc/manual/pptex.py | 6 |
1 files changed, 3 insertions, 3 deletions
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 |
