]> git.lyx.org Git - features.git/commitdiff
Fix the fix for python 2 and 3 compatibility.
authorGünter Milde <milde@lyx.org>
Thu, 11 May 2017 14:30:10 +0000 (16:30 +0200)
committerGünter Milde <milde@lyx.org>
Thu, 11 May 2017 14:30:10 +0000 (16:30 +0200)
Really remove the "r" prefix.

lib/scripts/lyxpreview2bitmap.py

index 094e8f915bb20920621cb6c0bbfa79824b2c6600..1848366a4fe3fa961e2adf3aa7eecc3df614ffe3 100755 (executable)
@@ -163,7 +163,8 @@ def extract_metrics_info(dvipng_stdout):
 def fix_latex_file(latex_file, pdf_output):
     # python 2 does not allow to declare a string as raw byte so we double
     # the backslashes and remove the r preffix
-    def_re = re.compile(rb"(\\\\newcommandx|\\\\global\\\\long\\\\def)(\\\\[a-zA-Z]+)")
+    def_re = re.compile(b"(\\\\newcommandx|\\\\global\\\\long\\\\def)"
+                        b"(\\\\[a-zA-Z]+)")
 
     tmp = mkstemp()