Mercurial > public > mercurial-scm > hg
comparison contrib/check-code.py @ 41544:7d1798ec92a3
check-code: use raw string
This avoids a SyntaxWarning in Python 3.8.
Differential Revision: https://phab.mercurial-scm.org/D5829
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 04 Feb 2019 09:38:33 -0800 |
parents | 876494fd967d |
children | e2472b12c842 |
comparison
equal
deleted
inserted
replaced
41543:dddf53473315 | 41544:7d1798ec92a3 |
---|---|
412 | 412 |
413 txtfilters = [] | 413 txtfilters = [] |
414 | 414 |
415 txtpats = [ | 415 txtpats = [ |
416 [ | 416 [ |
417 ('\s$', 'trailing whitespace'), | 417 (r'\s$', 'trailing whitespace'), |
418 ('.. note::[ \n][^\n]', 'add two newlines after note::') | 418 ('.. note::[ \n][^\n]', 'add two newlines after note::') |
419 ], | 419 ], |
420 [] | 420 [] |
421 ] | 421 ] |
422 | 422 |