Show More
@@ -439,11 +439,17 b' class ui(object):' | |||
|
439 | 439 | return self._data(untrusted).source(section, name) |
|
440 | 440 | |
|
441 | 441 | def config(self, section, name, default=_unset, untrusted=False): |
|
442 | if isinstance(name, list): | |
|
443 | alternates = name | |
|
444 | # let us ignore the config items in the alternates case for now | |
|
442 | 445 | if default is _unset: |
|
443 | 446 | default = None |
|
444 | if isinstance(name, list): | |
|
445 | alternates = name | |
|
446 | 447 | else: |
|
448 | if default is _unset: | |
|
449 | default = None | |
|
450 | item = self._knownconfig.get(section, {}).get(name) | |
|
451 | if item is not None: | |
|
452 | default = item.default | |
|
447 | 453 | alternates = [name] |
|
448 | 454 | |
|
449 | 455 | for n in alternates: |
General Comments 0
You need to be logged in to leave comments.
Login now