comparison mercurial/ui.py @ 43787:be8552f25cab

cleanup: fix docstring formatting This is just removing the b'' prefix (except demandimportpy2), and making sure it is triple quoted. I skipped the mapping.py module in zope because that's 3rd party code. Differential Revision: https://phab.mercurial-scm.org/D7539
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 01 Dec 2019 18:46:10 -0500
parents 9f70512ae2cf
children e5f69e3bb3f6
comparison
equal deleted inserted replaced
43786:421ea5772039 43787:be8552f25cab
651 ) 651 )
652 652
653 return main, sub 653 return main, sub
654 654
655 def configpath(self, section, name, default=_unset, untrusted=False): 655 def configpath(self, section, name, default=_unset, untrusted=False):
656 b'get a path config item, expanded relative to repo root or config file' 656 """get a path config item, expanded relative to repo root or config
657 file"""
657 v = self.config(section, name, default, untrusted) 658 v = self.config(section, name, default, untrusted)
658 if v is None: 659 if v is None:
659 return None 660 return None
660 if not os.path.isabs(v) or b"://" not in v: 661 if not os.path.isabs(v) or b"://" not in v:
661 src = self.configsource(section, name, untrusted) 662 src = self.configsource(section, name, untrusted)