Mercurial > public > mercurial-scm > hg-stable
diff hgext/lfs/blobstore.py @ 50924:6543469a351e
lfs: use sysstr to check for attribute presence
We do not need bytes here.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 30 Aug 2023 12:51:27 +0200 |
parents | 18282cf18aa2 |
children | d718eddf01d9 |
line wrap: on
line diff
--- a/hgext/lfs/blobstore.py Wed Aug 30 12:38:02 2023 +0200 +++ b/hgext/lfs/blobstore.py Wed Aug 30 12:51:27 2023 +0200 @@ -271,7 +271,7 @@ if isinstance(urlerror.reason, Exception): inst = urlerror.reason - if util.safehasattr(inst, b'reason'): + if util.safehasattr(inst, 'reason'): try: # usually it is in the form (errno, strerror) reason = inst.reason.args[1] except (AttributeError, IndexError): @@ -751,7 +751,7 @@ if lfsurl is None: if remote: path = remote - elif util.safehasattr(repo, b'_subtoppath'): + elif util.safehasattr(repo, '_subtoppath'): # The pull command sets this during the optional update phase, which # tells exactly where the pull originated, whether 'paths.default' # or explicit.