in src/ext/guac.py [0:0]
def phase_set(option_value):
"""
Parses the given string, converting it from a comma-separated list of
values into a Python set of Guacamole protocol session phase identifier
strings ("handshake" or "interactive").
:param option_value:
The string to parse, as may be received from Sphinx as the value of a
directive option.
:return set:
A Python set containing all phase identifier strings within the
provided comma-separated list.
:raises ValueError:
If any provided phase is invalid.
"""
entries = directives.unchanged_required(option_value)
return { phase(entry) for entry in entries.split(',') }