MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / ensure_string_list

Method ensure_string_list

Lib/distutils/cmd.py:225–250  ·  view source on GitHub ↗

Ensure that 'option' is a list of strings. If 'option' is currently a string, we split it either on /,\s*/ or /\s+/, so "foo bar baz", "foo,bar,baz", and "foo, bar baz" all become ["foo", "bar", "baz"].

(self, option)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

finalize_package_dataMethod · 0.80
finalize_optionsMethod · 0.80
finalize_optionsMethod · 0.80
finalize_optionsMethod · 0.80

Calls 2

getattrFunction · 0.85
splitMethod · 0.80

Tested by 1