largefiles: make scheme regex a bytes regex
authorAugie Fackler <augie@google.com>
Sun, 18 Feb 2018 14:25:03 -0500
changeset 36310 ea62c2df882d
parent 36309 94a1ff16f362
child 36311 b9da10f310f4
largefiles: make scheme regex a bytes regex # skip-blame just a b prefix Differential Revision: https://phab.mercurial-scm.org/D2338
hgext/largefiles/storefactory.py
--- 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))