Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/ui.py @ 31481:75e4bae56068
config: honour the trusted flag in ui.configbytes
author | Martijn Pieters <mjpieters@fb.com> |
---|---|
date | Sun, 12 Mar 2017 11:43:31 -0700 |
parents | 2eee8ad77726 |
children | 9335dc6b2a9c |
comparison
equal
deleted
inserted
replaced
31480:95be8b7181d3 | 31481:75e4bae56068 |
---|---|
540 Traceback (most recent call last): | 540 Traceback (most recent call last): |
541 ... | 541 ... |
542 ConfigError: foo.invalid is not a byte quantity ('somevalue') | 542 ConfigError: foo.invalid is not a byte quantity ('somevalue') |
543 """ | 543 """ |
544 | 544 |
545 value = self.config(section, name) | 545 value = self.config(section, name, None, untrusted) |
546 if value is None: | 546 if value is None: |
547 if not isinstance(default, str): | 547 if not isinstance(default, str): |
548 return default | 548 return default |
549 value = default | 549 value = default |
550 try: | 550 try: |