diff docs/test2rst.py @ 4801:16c1398b0063

python3: prefix all regex to work with python 2 and 3
author Rapha?l Gom?s <rgomes@octobus.net>
date Tue, 06 Aug 2019 11:07:16 +0200
parents 1a4f26eec0af
children 60ce376919c5
line wrap: on
line diff
--- a/docs/test2rst.py	Tue Aug 06 00:16:05 2019 +0200
+++ b/docs/test2rst.py	Tue Aug 06 11:07:16 2019 +0200
@@ -14,10 +14,10 @@
 '''
 
 ignored_patterns = [
-    re.compile('^#if'),
-    re.compile('^#else'),
-    re.compile('^#endif'),
-    re.compile('#rest-ignore$'),
+    re.compile(r'^#if'),
+    re.compile(r'^#else'),
+    re.compile(r'^#endif'),
+    re.compile(r'#rest-ignore$'),
 ]