commit 72f4acf66ca899862a0549d7477ea9c25632a7c0
Author: Scott Kostyshak <[email protected]>
Date: Thu Aug 22 10:51:09 2024 -0400
Fix Python SyntaxWarning
Use raw strings to avoid the following syntax warnings that show up
in LastTest.log after running tex2lyx ctests:
src/tex2lyx/test/runtests.py:135: SyntaxWarning: invalid escape sequence
'\o'
if linex[:-1] == '\origin ' + inputdir + '/':
src/tex2lyx/test/runtests.py:136: SyntaxWarning: invalid escape sequence
'\o'
lines1[i1] = '\origin ' + outputdir + '/' + "\n"
---
src/tex2lyx/test/runtests.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/tex2lyx/test/runtests.py b/src/tex2lyx/test/runtests.py
index aae80c1426..696123958d 100755
--- a/src/tex2lyx/test/runtests.py
+++ b/src/tex2lyx/test/runtests.py
@@ -132,8 +132,8 @@ def main(argv):
lines1 = f1.readlines()
i1 = 0
for linex in lines1:
- if linex[:-1] == '\origin ' + inputdir + '/':
- lines1[i1] = '\origin ' + outputdir + '/' + "\n"
+ if linex[:-1] == r'\origin ' + inputdir + '/':
+ lines1[i1] = r'\origin ' + outputdir + '/' + "\n"
break
i1 = i1+1
lines2 = f2.readlines()
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs