Commit e3079eb5 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[2244] added comment about has_comonent as it may not be very obvious.

parent 5097c349
......@@ -573,6 +573,9 @@ class Configurator:
def has_component(self, component):
'''Return if a specified component is configured.'''
# Values of self._components are tuples of (name, component).
# Extract the components of the tuples and see if the given one
# is included.
return component in map(lambda x: x[1], self._components.values())
def reconfigure(self, configuration):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment