# HG changeset patch # User Pierre-Yves David # Date 2023-08-30 10:03:11 # Node ID 1b265336c42b20ccc19e2078031054b942e2f25f # Parent ab3267a86d5f0f3241d5234050f3e08257c91a7f largefile: use sysstr to check for attribute presence in `openstore` We do not need bytes here. diff --git a/hgext/largefiles/storefactory.py b/hgext/largefiles/storefactory.py --- a/hgext/largefiles/storefactory.py +++ b/hgext/largefiles/storefactory.py @@ -57,7 +57,7 @@ def openstore(repo=None, remote=None, pu # The path could be a scheme so use Mercurial's normal functionality # to resolve the scheme to a repository and use its path - path = util.safehasattr(remote, b'url') and remote.url() or remote.path + path = util.safehasattr(remote, 'url') and remote.url() or remote.path match = _scheme_re.match(path) if not match: # regular filesystem path