Mercurial > public > mercurial-scm > hg
comparison contrib/check-code.py @ 43081:e65e7290041e
contrib: fix check-code to be able to detect missing _() with bytestrings
Differential Revision: https://phab.mercurial-scm.org/D6997
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 06 Oct 2019 10:20:17 -0400 |
parents | 2372284d9457 |
children | 24a07347aa60 |
comparison
equal
deleted
inserted
replaced
43080:86e4daa2d54c | 43081:e65e7290041e |
---|---|
506 ( | 506 ( |
507 r'''(?x)ui\.(status|progress|write|note|warn)\( | 507 r'''(?x)ui\.(status|progress|write|note|warn)\( |
508 [ \t\n#]* | 508 [ \t\n#]* |
509 (?# any strings/comments might precede a string, which | 509 (?# any strings/comments might precede a string, which |
510 # contains translatable message) | 510 # contains translatable message) |
511 ((['"]|\'\'\'|""")[ \npq%bAPMxno]*(['"]|\'\'\'|""")[ \t\n#]+)* | 511 b?((['"]|\'\'\'|""")[ \npq%bAPMxno]*(['"]|\'\'\'|""")[ \t\n#]+)* |
512 (?# sequence consisting of below might precede translatable message | 512 (?# sequence consisting of below might precede translatable message |
513 # - formatting string: "% 10s", "%05d", "% -3.2f", "%*s", "%%" ... | 513 # - formatting string: "% 10s", "%05d", "% -3.2f", "%*s", "%%" ... |
514 # - escaped character: "\\", "\n", "\0" ... | 514 # - escaped character: "\\", "\n", "\0" ... |
515 # - character other than '%', 'b' as '\', and 'x' as alphabet) | 515 # - character other than '%', 'b' as '\', and 'x' as alphabet) |
516 (['"]|\'\'\'|""") | 516 (['"]|\'\'\'|""") |