File: 02_fix_octal_escape.patch

package info (click to toggle)
cssutils 1.0-4.1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,376 kB
  • sloc: python: 20,145; sh: 102; makefile: 62
file content (18 lines) | stat: -rw-r--r-- 794 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Fix octal escape on Python 3.5
Origin: https://bitbucket.org/cthedot/cssutils/commits/866a29f7e03447199ba22fb114d42a7aab027db9/raw/
Author: Daniel <kingdread@gmx.de>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=798023
Bug-Upstream: https://bugs.python.org/issue22362
Last-Updated: 2016-01-21

--- a/src/cssutils/profiles.py
+++ b/src/cssutils/profiles.py
@@ -102,7 +102,7 @@
         'nmstart': r'[_a-z]|{nonascii}|{escape}',
         'nonascii': r'[^\0-\177]',
         'unicode': r'\\[0-9a-f]{1,6}(\r\n|[ \n\r\t\f])?',
-        'escape': r'{unicode}|\\[ -~\200-\777]',
+        'escape': r'{unicode}|\\[ -~\u0080-\u01ff]',
     #   'escape': r'{unicode}|\\[ -~\200-\4177777]',
         'int': r'[-]?\d+',
         'nmchar': r'[\w-]|{nonascii}|{escape}',