+2024-05-03 Collin Funk <collin.funk1@gmail.com>
+
+ gnulib-tool.py: Fix an undefined function name.
+ * pygnulib/main.py (main_with_exception_handling): Use the tempfile
+ module prefix when calling mkdtemp(). Use the 'glpy' prefix for the
+ temporary directory that exists for the entirety of the program.
+
2024-05-03 Simon Josefsson <simon@josefsson.org>
maint.mk: Don't fail on ~/.indent.pro, reported by Collin Funk.
def main_with_exception_handling() -> None:
try: # Try to execute
- with tempfile.TemporaryDirectory() as temporary_directory:
+ with tempfile.TemporaryDirectory(prefix='glpy') as temporary_directory:
main(temporary_directory)
except GLError as error:
errmode = 0 # gnulib-style errors
incompatibilities += pair[0]
incompatibilities += ' %s' % pair[1]
incompatibilities += '\n'
- tempname = mktemp()
+ tempname = tempfile.mktemp()
with open(tempname, mode='w', newline='\n', encoding='utf-8') as file:
file.write(incompatibilities)
sed_table = 's,^\\([^ ]*\\) ,\\1' + ' ' * 51 + ',\n'