largefiles: make scheme regex a bytes regex
# skip-blame just a b prefix
Differential Revision: https://phab.mercurial-scm.org/D2338
--- a/hgext/largefiles/storefactory.py Sat Feb 17 13:13:04 2018 +0900
+++ b/hgext/largefiles/storefactory.py Sun Feb 18 14:25:03 2018 -0500
@@ -80,7 +80,7 @@
'ssh': [wirestore.wirestore],
}
-_scheme_re = re.compile(r'^([a-zA-Z0-9+-.]+)://')
+_scheme_re = re.compile(br'^([a-zA-Z0-9+-.]+)://')
def getlfile(ui, hash):
return util.chunkbuffer(openstore(ui=ui)._get(hash))