]> Savannah Git Hosting - gnulib.git/commit
gnulib-tool.py: Simplify joining paths.
authorCollin Funk <collin.funk1@gmail.com>
Sat, 15 Jun 2024 04:55:48 +0000 (21:55 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Sat, 15 Jun 2024 04:55:48 +0000 (21:55 -0700)
commit790206bfe741d1280b0b5734a0d4070b26a885ab
treebf7d6457570da8f2c5249399f0a6525d3911ae25
parent93ed3a5c8a0d6ff93fd82edc338021ab176e7117
gnulib-tool.py: Simplify joining paths.

* pygnulib/constants.py (joinpath): Remove function. It is equivalent to
os.path.normpath(os.path.join(...)) where the os.path.normpath is
typically not needed.
(relativize, symlink_relative, as_link_value_at_dest, hardlink): Use
os.path.join instead of joinpath.
* pygnulib/GLConfig.py (resetAutoconfFile): Likewise.
* pygnulib/GLEmiter.py (lib_Makefile_am, tests_Makefile_am): Likewise.
* pygnulib/GLFileSystem.py (lookup, shouldLink, tmpfilename, add)
(update, add_or_update, super_update): Likewise.
* pygnulib/GLInfo.py (version): Likewise.
* pygnulib/GLMakefileTable.py (parent): Likewise.
* pygnulib/GLTestDir.py (_patch_test_driver, execute): Likewise.
* pygnulib/main.py (main): Likewise.
* pygnulib/GLModuleSystem.py (exists, find, getFiles): Likewise.
* pygnulib/GLImport.py (__init__, relative_to_currdir)
(_done_dir_, _update_ignorelist_, prepare, execute): Likewise.
(getAutomakeSnippet_Unconditional): Likewise. Add a comment about not
using os.path.normpath() to protect a Make variable.
ChangeLog
pygnulib/GLConfig.py
pygnulib/GLEmiter.py
pygnulib/GLFileSystem.py
pygnulib/GLImport.py
pygnulib/GLInfo.py
pygnulib/GLMakefileTable.py
pygnulib/GLModuleSystem.py
pygnulib/GLTestDir.py
pygnulib/constants.py
pygnulib/main.py