summaryrefslogtreecommitdiffstats
path: root/lib/bb
diff options
context:
space:
mode:
authorChris Laplante <chris.laplante@agilent.com>2020-11-08 17:10:50 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-11-09 17:21:05 +0000
commit36ee858415866a122784b05f06e2af0c92dfcafd (patch)
tree6cde4fa4b5bbe431c82d6c999e2ad72378d8172b /lib/bb
parent991f92b4d15b0571b6a540964e5216d1b9728539 (diff)
downloadbitbake-36ee858415866a122784b05f06e2af0c92dfcafd.tar.gz
cookerdata: tweak to avoid mutable default argument
Signed-off-by: Chris Laplante <chris.laplante@agilent.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb')
-rw-r--r--lib/bb/cookerdata.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bb/cookerdata.py b/lib/bb/cookerdata.py
index 91cc4347f..c39b56813 100644
--- a/lib/bb/cookerdata.py
+++ b/lib/bb/cookerdata.py
@@ -23,8 +23,8 @@ logger = logging.getLogger("BitBake")
parselog = logging.getLogger("BitBake.Parsing")
class ConfigParameters(object):
- def __init__(self, argv=sys.argv):
- self.options, targets = self.parseCommandLine(argv)
+ def __init__(self, argv=None):
+ self.options, targets = self.parseCommandLine(argv or sys.argv)
self.environment = self.parseEnvironment()
self.options.pkgs_to_build = targets or []
@@ -209,7 +209,7 @@ def findConfigFile(configfile, data):
return None
#
-# We search for a conf/bblayers.conf under an entry in BBPATH or in cwd working
+# We search for a conf/bblayers.conf under an entry in BBPATH or in cwd working
# up to /. If that fails, we search for a conf/bitbake.conf in BBPATH.
#