changeset 10707:4eaf1b746499

check-code: remove simple quotes first
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Tue, 16 Mar 2010 16:39:17 +0100
parents d8d1b56d4519
children 61c52fedbd45
files contrib/check-code.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/check-code.py	Tue Mar 16 01:16:19 2010 +0100
+++ b/contrib/check-code.py	Tue Mar 16 16:39:17 2010 +0100
@@ -96,10 +96,10 @@
 ]
 
 pyfilters = [
+    (r'''(?<!")(")(([^"\n]|\\")+)"(?!")''', repquote),
+    (r"""(?<!')(')(([^'\n]|\\')+)'(?!')""", repquote),
     (r"""(''')(([^']|\\'|'{1,2}(?!'))*)'''""", repquote),
     (r'''(""")(([^"]|\\"|"{1,2}(?!"))*)"""''', repquote),
-    (r'''(?<!")(")(([^"\n]|\\")+)"(?!")''', repquote),
-    (r"""(?<!')(')(([^'\n]|\\')+)'(?!')""", repquote),
     (r"( *)(#([^\n]*\S)?)", repcomment),
 ]