hgext/largefiles/wirestore.py
changeset 43077 687b865b95ad
parent 43076 2372284d9457
child 45942 89a2afe31e82
--- a/hgext/largefiles/wirestore.py	Sun Oct 06 09:45:02 2019 -0400
+++ b/hgext/largefiles/wirestore.py	Sun Oct 06 09:48:39 2019 -0400
@@ -14,11 +14,11 @@
 
 class wirestore(remotestore.remotestore):
     def __init__(self, ui, repo, remote):
-        cap = remote.capable('largefiles')
+        cap = remote.capable(b'largefiles')
         if not cap:
             raise lfutil.storeprotonotcapable([])
-        storetypes = cap.split(',')
-        if 'serve' not in storetypes:
+        storetypes = cap.split(b',')
+        if b'serve' not in storetypes:
             raise lfutil.storeprotonotcapable(storetypes)
         self.remote = remote
         super(wirestore, self).__init__(ui, repo, remote.url())
@@ -37,6 +37,6 @@
         with self.remote.commandexecutor() as e:
             fs = []
             for hash in hashes:
-                fs.append((hash, e.callcommand('statlfile', {'sha': hash,})))
+                fs.append((hash, e.callcommand(b'statlfile', {b'sha': hash,})))
 
             return {hash: f.result() for hash, f in fs}