All of lore.kernel.org
 help / color / mirror / Atom feed
From: Prasanth R <ragaprasanth@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: JPEWhacker@gmail.com, Prasanth R <ragaprasanth@gmail.com>
Subject: [PATCH] spdx_license: fix NameError in parse_match()
Date: Fri, 30 Oct 2026 09:01:57 +0900	[thread overview]
Message-ID: <20261030000157.3211187-1-ragaprasanth@gmail.com> (raw)

parse_match() calls tokenizer(), which does not exist, so every call
fails with:
  NameError: name 'tokenizer' is not defined. Did you mean: 'tokenize'?

Signed-off-by: Prasanth R <prasanth.r@lineo.co.jp>
---
 meta/lib/oe/spdx_license.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oe/spdx_license.py b/meta/lib/oe/spdx_license.py
index 7369eca9ef..278710c60b 100644
--- a/meta/lib/oe/spdx_license.py
+++ b/meta/lib/oe/spdx_license.py
@@ -765,7 +765,7 @@ def parse(s, *, allow_unknown=False):
 
 def parse_match(s):
     try:
-        tokens = tokenizer(s)
+        tokens = tokenize(s)
         return create_ast(tokens)
     except ParseError as e:
         e.expression = s
-- 
2.34.1


                 reply	other threads:[~2026-10-30  0:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261030000157.3211187-1-ragaprasanth@gmail.com \
    --to=ragaprasanth@gmail.com \
    --cc=JPEWhacker@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.