All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] support/scripts: fix pycompile for short filenames
@ 2021-03-29 10:55 Bert Outtier
  2021-03-30 20:22 ` Yann E. MORIN
  0 siblings, 1 reply; 3+ messages in thread
From: Bert Outtier @ 2021-03-29 10:55 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Bert Outtier <outtierbert@gmail.com>
---
 support/scripts/pycompile.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/support/scripts/pycompile.py b/support/scripts/pycompile.py
index 2b636e03cb..b8cd3cee6c 100644
--- a/support/scripts/pycompile.py
+++ b/support/scripts/pycompile.py
@@ -30,7 +30,7 @@ def compile_one(host_path, strip_root=None, verbose=False):
     if os.path.islink(host_path) or not os.path.isfile(host_path):
         return  # only compile real files
 
-    if not re.match(r"^[_A-Za-z][_A-Za-z0-9]+\.py$",
+    if not re.match(r"^[_A-Za-z][_A-Za-z0-9]*\.py$",
                     os.path.basename(host_path)):
         return  # only compile "importable" python modules
 
-- 
2.25.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-04-03 11:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-29 10:55 [Buildroot] [PATCH 1/1] support/scripts: fix pycompile for short filenames Bert Outtier
2021-03-30 20:22 ` Yann E. MORIN
2021-04-03 11:48   ` Peter Korsgaard

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.