debian-forge/osbuild
David Rheinsberg 46526cf205 osbuild: avoid [] as default value
Using `[]` as default value for arguments makes `pylint` complain. The
reason is that it creates an array statically at the time the function
is parsed, rather than dynamically on invocation of the function. This
means, when you append to this array, you change the global instance and
every further invocation of that function works on this modified array.

While our use-cases are safe, this is indeed a common pitfall. Lets
avoid using this and resort to `None` instead.

This silences a lot of warnings from pylint about "dangerous use of []".
2020-05-28 11:06:05 +02:00
..
util osbuild: avoid [] as default value 2020-05-28 11:06:05 +02:00
__init__.py osbuild: extract CLI to prepare for additional entrypoints 2020-04-28 15:39:54 +02:00
__main__.py osbuild: extract CLI to prepare for additional entrypoints 2020-04-28 15:39:54 +02:00
api.py osbuild: convert to jsoncomm 2020-04-21 13:47:38 +02:00
buildroot.py buildroot: convert unused format-string 2020-05-28 11:06:05 +02:00
loop.py loop: fix FD leak in mknod() 2020-04-21 13:02:29 +02:00
main_cli.py osbuild: avoid [] as default value 2020-05-28 11:06:05 +02:00
meta.py osbuild: avoid [] as default value 2020-05-28 11:06:05 +02:00
objectstore.py util/ctx: extract suppress_oserror() 2020-05-11 18:05:12 +02:00
pipeline.py pipeline: drop {tree, output}_id from --inspect js 2020-05-20 18:54:56 +02:00
remoteloop.py osbuild: convert to jsoncomm 2020-04-21 13:47:38 +02:00
sources.py sources: pass the library dir to the sources 2020-05-20 14:43:33 +02:00
treesum.py treesum: don't use dir_fd parameter in os.scandir() 2019-11-29 00:45:14 +01:00