Patchwork D2338: largefiles: make scheme regex a bytes regex

login
register
mail settings
Submitter phabricator
Date Feb. 18, 2018, 8:54 p.m.
Message ID <differential-rev-PHID-DREV-be2oase2phhe3bet43cb-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/28125/
State Superseded
Headers show

Comments

phabricator - Feb. 18, 2018, 8:54 p.m.
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  1. skip-blame just a b prefix

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D2338

AFFECTED FILES
  hgext/largefiles/storefactory.py

CHANGE DETAILS




To: durin42, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/hgext/largefiles/storefactory.py b/hgext/largefiles/storefactory.py
--- a/hgext/largefiles/storefactory.py
+++ b/hgext/largefiles/storefactory.py
@@ -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))