Mercurial > public > mercurial-scm > hg
comparison mercurial/hg.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 | 101ae8bbfa02 |
children | a61287a95dc3 |
comparison
equal
deleted
inserted
replaced
43786:421ea5772039 | 43787:be8552f25cab |
---|---|
1343 | 1343 |
1344 return ret | 1344 return ret |
1345 | 1345 |
1346 | 1346 |
1347 def remoteui(src, opts): | 1347 def remoteui(src, opts): |
1348 b'build a remote ui from ui or repo and opts' | 1348 """build a remote ui from ui or repo and opts""" |
1349 if util.safehasattr(src, b'baseui'): # looks like a repository | 1349 if util.safehasattr(src, b'baseui'): # looks like a repository |
1350 dst = src.baseui.copy() # drop repo-specific config | 1350 dst = src.baseui.copy() # drop repo-specific config |
1351 src = src.ui # copy target options from repo | 1351 src = src.ui # copy target options from repo |
1352 else: # assume it's a global ui object | 1352 else: # assume it's a global ui object |
1353 dst = src.copy() # keep all global options | 1353 dst = src.copy() # keep all global options |