diff mbox series

[01/13] lib/oe/path: rename "metadata" parameter to "d"

Message ID 20261116-oe-lib-docstrings-v1-1-0c894f6a1064@bootlin.com
State New
Headers show
Series Improve or add oe.* library docstrings | expand

Commit Message

Antonin Godard Nov. 16, 2026, 4:08 p.m. UTC
Using metadata for this argument is confusing, as almost any other
function in the oe library uses "d" to denote the datastore. Rename it
to "d".

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
 meta/lib/oe/path.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta/lib/oe/path.py b/meta/lib/oe/path.py
index 88d256f00b..8fe5bbc7fb 100644
--- a/meta/lib/oe/path.py
+++ b/meta/lib/oe/path.py
@@ -81,9 +81,9 @@  def replace_absolute_symlinks(basedir, d):
             os.symlink(base, path)
 
 @bb.parse.vardepsexclude("TOPDIR")
-def format_display(path, metadata):
+def format_display(path, d):
     """ Prepare a path for display to the user. """
-    rel = relative(metadata.getVar("TOPDIR"), path)
+    rel = relative(d.getVar("TOPDIR"), path)
     if len(rel) > len(path):
         return path
     else: