changeset 50914:1b265336c42b

largefile: use sysstr to check for attribute presence in `openstore` We do not need bytes here.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 30 Aug 2023 12:03:11 +0200
parents ab3267a86d5f
children 34a27addc286
files hgext/largefiles/storefactory.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/largefiles/storefactory.py	Wed Aug 30 12:01:37 2023 +0200
+++ b/hgext/largefiles/storefactory.py	Wed Aug 30 12:03:11 2023 +0200
@@ -57,7 +57,7 @@
 
     # 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