diff options
author | Daniel Mensinger <daniel@mensinger-ka.de> | 2019-04-23 14:59:54 +0200 |
---|---|---|
committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2019-04-29 12:22:50 +0200 |
commit | 2b5831f94fdfdbce711189502c6f41606c12af61 (patch) | |
tree | 2d11b6257d3e4dc40b4657664dbfccf73349ba0e /mesonbuild/backend/backends.py | |
parent | e75211d321d7416b8a4871d3015a7915fb86b53b (diff) | |
download | meson-2b5831f94fdfdbce711189502c6f41606c12af61.zip meson-2b5831f94fdfdbce711189502c6f41606c12af61.tar.gz meson-2b5831f94fdfdbce711189502c6f41606c12af61.tar.bz2 |
Fix flake8-bugbear warnings
Diffstat (limited to 'mesonbuild/backend/backends.py')
-rw-r--r-- | mesonbuild/backend/backends.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py index 4a4f7f4..5ff9b55 100644 --- a/mesonbuild/backend/backends.py +++ b/mesonbuild/backend/backends.py @@ -320,12 +320,14 @@ class Backend: raise MesonException('Unknown data type in object list.') return obj_list - def serialize_executable(self, tname, exe, cmd_args, workdir, env={}, + def serialize_executable(self, tname, exe, cmd_args, workdir, env=None, extra_paths=None, capture=None): ''' Serialize an executable for running with a generator or a custom target ''' import hashlib + if env is None: + env = {} if extra_paths is None: # The callee didn't check if we needed extra paths, so check it here if mesonlib.is_windows() or mesonlib.is_cygwin(): |