debian-forge/osbuild/util
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
..
__init__.py util: mark as module 2020-04-21 17:00:04 +02:00
ctx.py util/ctx: extract suppress_oserror() 2020-05-11 18:05:12 +02:00
jsoncomm.py osbuild: avoid [] as default value 2020-05-28 11:06:05 +02:00
linux.py util/linux: add explicit FS_IMMUTABLE_FL helpers 2020-04-21 14:46:02 +02:00
osrelease.py osbuild: move osrelease parser into ./util 2020-04-28 15:39:00 +02:00
ostree.py util: new ostree module with TreeFile helper 2020-04-15 15:39:45 +02:00
rmrf.py util/rmrf: use immutable helpers 2020-04-21 14:46:02 +02:00
selinux.py util/selinux: add simple setfiles wrapper 2020-04-15 15:39:45 +02:00