diff mbox series

[1/3] codeparser: add missing 'import os'

Message ID 20231020184459.1420806-1-chris.laplante@agilent.com
State Accepted, archived
Commit 302969885d37a76edec3aa79181e98f8d7e28021
Headers show
Series [1/3] codeparser: add missing 'import os' | expand

Commit Message

chris.laplante@agilent.com Oct. 20, 2023, 6:44 p.m. UTC
From: Chris Laplante <chris.laplante@agilent.com>

Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
---
 lib/bb/codeparser.py | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/lib/bb/codeparser.py b/lib/bb/codeparser.py
index cb068844bb..cd39409434 100644
--- a/lib/bb/codeparser.py
+++ b/lib/bb/codeparser.py
@@ -62,6 +62,7 @@  def check_indent(codestr):
 modulecode_deps = {}
 
 def add_module_functions(fn, functions, namespace):
+    import os
     fstat = os.stat(fn)
     fixedhash = fn + ":" + str(fstat.st_size) +  ":" + str(fstat.st_mtime)
     for f in functions: