File: 0003-syntax-warning.patch

package info (click to toggle)
mistune0 0.8.4-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 920 kB
  • sloc: python: 1,325; makefile: 177
file content (11 lines) | stat: -rw-r--r-- 343 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
--- a/mistune0.py
+++ b/mistune0.py
@@ -432,7 +432,7 @@
         for i, line in enumerate(cells):
             for c, cell in enumerate(line):
                 # de-escape any pipe inside the cell here
-                cells[i][c] = re.sub('\\\\\|', '|', cell)
+                cells[i][c] = cell.replace(r'\|', '|')
 
         return cells