mirror of
https://github.com/samba-team/samba.git
synced 2025-12-12 12:23:50 +03:00
python: fix mutable default arguments
Signed-off-by: Rob van der Linde <rob@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Feb 23 23:33:46 UTC 2023 on atb-devel-224
This commit is contained in:
committed by
Andrew Bartlett
parent
e7c87b1d9b
commit
5cb8805811
@@ -133,7 +133,7 @@ def shorten_vertex_names(vertices, suffix=',...', aggressive=False):
|
||||
return vmap, replacements
|
||||
|
||||
|
||||
def compile_graph_key(key_items, nodes_above=[], elisions=None,
|
||||
def compile_graph_key(key_items, nodes_above=None, elisions=None,
|
||||
prefix='key_', width=2):
|
||||
"""Generate a dot file snippet that acts as a legend for a graph.
|
||||
|
||||
@@ -148,6 +148,8 @@ def compile_graph_key(key_items, nodes_above=[], elisions=None,
|
||||
(True) or edge (False). Style is a dot style string for the edge
|
||||
or vertex. label is the text associated with the key item.
|
||||
"""
|
||||
if nodes_above is None:
|
||||
nodes_above = []
|
||||
edge_lines = []
|
||||
edge_names = []
|
||||
vertex_lines = []
|
||||
|
||||
Reference in New Issue
Block a user