Show More
@@ -45,12 +45,12 b' class gitlfspointer(dict):' | |||||
45 |
|
45 | |||
46 | # regular expressions used by _validate |
|
46 | # regular expressions used by _validate | |
47 | # see https://github.com/git-lfs/git-lfs/blob/master/docs/spec.md |
|
47 | # see https://github.com/git-lfs/git-lfs/blob/master/docs/spec.md | |
48 | _keyre = re.compile(r'\A[a-z0-9.-]+\Z') |
|
48 | _keyre = re.compile(br'\A[a-z0-9.-]+\Z') | |
49 | _valuere = re.compile(r'\A[^\n]*\Z') |
|
49 | _valuere = re.compile(br'\A[^\n]*\Z') | |
50 | _requiredre = { |
|
50 | _requiredre = { | |
51 | 'size': re.compile(r'\A[0-9]+\Z'), |
|
51 | 'size': re.compile(br'\A[0-9]+\Z'), | |
52 | 'oid': re.compile(r'\Asha256:[0-9a-f]{64}\Z'), |
|
52 | 'oid': re.compile(br'\Asha256:[0-9a-f]{64}\Z'), | |
53 | 'version': re.compile(r'\A%s\Z' % re.escape(VERSION)), |
|
53 | 'version': re.compile(br'\A%s\Z' % re.escape(VERSION)), | |
54 | } |
|
54 | } | |
55 |
|
55 | |||
56 | def validate(self): |
|
56 | def validate(self): |
General Comments 0
You need to be logged in to leave comments.
Login now