Mercurial > public > mercurial-scm > hg-stable
diff hgext/lfs/blobstore.py @ 43077:687b865b95ad
formatting: byteify all mercurial/ and hgext/ string literals
Done with
python3.7 contrib/byteify-strings.py -i $(hg files 'set:mercurial/**.py - mercurial/thirdparty/** + hgext/**.py - hgext/fsmonitor/pywatchman/** - mercurial/__init__.py')
black -l 80 -t py33 -S $(hg files 'set:**.py - mercurial/thirdparty/** - "contrib/python-zstandard/**" - hgext/fsmonitor/pywatchman/**')
# skip-blame mass-reformatting only
Differential Revision: https://phab.mercurial-scm.org/D6972
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 06 Oct 2019 09:48:39 -0400 |
parents | 2372284d9457 |
children | c59eb1560c44 |
line wrap: on
line diff
--- a/hgext/lfs/blobstore.py Sun Oct 06 09:45:02 2019 -0400 +++ b/hgext/lfs/blobstore.py Sun Oct 06 09:48:39 2019 -0400 @@ -66,7 +66,7 @@ [dirpath + f for f in files if _lfsre.match(dirpath + f)] ) - yield ('', [], oids) + yield (b'', [], oids) class nullvfs(lfsvfs): @@ -256,7 +256,7 @@ if isinstance(urlerror.reason, Exception): inst = urlerror.reason - if util.safehasattr(inst, 'reason'): + if util.safehasattr(inst, b'reason'): try: # usually it is in the form (errno, strerror) reason = inst.reason.args[1] except (AttributeError, IndexError): @@ -703,11 +703,11 @@ https://github.com/git-lfs/git-lfs/blob/master/docs/api/server-discovery.md """ lfsurl = repo.ui.config(b'lfs', b'url') - url = util.url(lfsurl or '') + url = util.url(lfsurl or b'') if lfsurl is None: if remote: path = remote - elif util.safehasattr(repo, '_subtoppath'): + elif util.safehasattr(repo, b'_subtoppath'): # The pull command sets this during the optional update phase, which # tells exactly where the pull originated, whether 'paths.default' # or explicit.