MCPcopy
hub / github.com/pyinstaller/pyinstaller / append_unique

Method append_unique

bootloader/waflib/ConfigSet.py:131–137  ·  view source on GitHub ↗
(self, var, val)

Source from the content-addressed store, hash-verified

129 self.table[var] = val + self._get_list_value_for_modification(var)
130
131 def append_unique(self, var, val):
132 if isinstance(val, str):
133 val = [val]
134 current_value = self._get_list_value_for_modification(var)
135 for x in val:
136 if x not in current_value:
137 current_value.append(x)
138
139 def get_merged_dict(self):
140 table_list = []

Callers 15

apply_intltool_in_fFunction · 0.80
configureFunction · 0.80
appuFunction · 0.80
define_itFunction · 0.80
defineFunction · 0.80
undefineFunction · 0.80
write_config_headerFunction · 0.80
add_as_neededFunction · 0.80
process_useFunction · 0.80
check_python_headersFunction · 0.80
set_classpathFunction · 0.80
check_jni_headersFunction · 0.80

Calls 2

appendMethod · 0.45

Tested by

no test coverage detected