From: Bruno Haible Date: Thu, 28 Mar 2024 03:41:21 +0000 (+0100) Subject: gnulib-tool.py: Update the gnulib-tool.py.TODO file. X-Git-Tag: v1.0~218 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=c34cbc736614154fd03aa670b1cb7c36374960c4;p=gnulib.git gnulib-tool.py: Update the gnulib-tool.py.TODO file. * gnulib-tool.py.TODO: Add a suggestion by Collin Funk. --- diff --git a/gnulib-tool.py.TODO b/gnulib-tool.py.TODO index 21a134df50..72de83dfd1 100644 --- a/gnulib-tool.py.TODO +++ b/gnulib-tool.py.TODO @@ -12,6 +12,10 @@ Various other refactorings, as deemed useful: - Use an enum for verifier=0,1,2. - Use an enum for 'all', 'old', 'new', 'added', 'removed' in GLImport.py. - sp.call(['rm', '-rf' ...]) versus shutil.rmtree ? + - go through all the open() and codecs.open() calls and turn them into + with open(file_name, 'r', newline='\n', encoding='utf-8') as file: + or + with open(file_name, 'w', newline='\n', encoding='utf-8') as file: ================================================================================