Skip to content
Myr

Changing the name of Context._parameter_sources to Context._sources_by_paramname

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Joshua Storck · committed by Joshua Storck · parent 23661ef · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:click/core.py+3 added-3 removed
367 unmodified lines
368 self.color = color369370 self._close_callbacks = []371 self._depth = 0372 self._parameter_sources = {}372 self._sources_by_paramname = {}373 374 def __enter__(self):375 self._depth += 1376 push_context(self)
236 unmodified lines
613 :param source: the source of the command line parameter, which614 should be a valid ParameterSource value615 """616 ParameterSource.validate(source)617 self._parameter_sources[name] = source617 self._sources_by_paramname[name] = source618619 def get_parameter_source(self, name):620 """Get the source of a parameter.621
7 unmodified lines
629 :param name: the name of the command line parameter630 :returns: the source631 :rtype: ParameterSource632 """633 return self._parameter_sources[name]633 return self._sources_by_paramname[name]634635636class BaseCommand(object):637 """The base command implements the minimal API contract of commands.
1291 unmodified lines