Skip to content

Commit 8b3aa08

Browse files
committed
Python 3.6 invalid escape sequence deprecation fix
https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
1 parent 386afc5 commit 8b3aa08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cssselect/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ def _compile(pattern):
617617
return re.compile(pattern % vars(TokenMacros), re.IGNORECASE).match
618618

619619
_match_whitespace = _compile(r'[ \t\r\n\f]+')
620-
_match_number = _compile('[+-]?(?:[0-9]*\.[0-9]+|[0-9]+)')
620+
_match_number = _compile(r'[+-]?(?:[0-9]*\.[0-9]+|[0-9]+)')
621621
_match_hash = _compile('#(?:%(nmchar)s)+')
622622
_match_ident = _compile('-?(?:%(nmstart)s)(?:%(nmchar)s)*')
623623
_match_string_by_quote = {

0 commit comments

Comments
 (0)