Don't use mutable defaults.

This commit is contained in:
Mike Auty
2019-04-05 14:50:39 +01:00
parent cc3a9ea4d8
commit 87bf1da424
@@ -161,7 +161,7 @@ class PoolScanner(plugins.PluginInterface):
yield (0, (constraint.type_name, format_hints.Hex(header.vol.offset), header.vol.layer_name, name))
@staticmethod
def builtin_constraints(symbol_table: str, tags_filter: List[bytes] = []) -> List[PoolConstraint]:
def builtin_constraints(symbol_table: str, tags_filter: List[bytes] = None) -> List[PoolConstraint]:
"""Get built-in PoolConstraints given a list of pool tags.
The tags_filter is a list of pool tags, and the associated