mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix a dumb typo in the revparse() regular exception: {1-4} should be {1,4}.
Now you can click on revisions and diffs again!
This commit is contained in:
parent
a58e9edbef
commit
55b40b06d2
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ revparse_prog = None
|
|||
def revparse(rev):
|
||||
global revparse_prog
|
||||
if not revparse_prog:
|
||||
revparse_prog = re.compile(r'^(\d{1,3})\.(\d{1-4})$')
|
||||
revparse_prog = re.compile(r'^(\d{1,3})\.(\d{1,4})$')
|
||||
m = revparse_prog.match(rev)
|
||||
if not m:
|
||||
return None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue