Permalink
Browse files

Merge pull request #74 from scop/py36esc

Python 3.6 invalid escape sequence deprecation fix
  • Loading branch information...
2 parents 14cc569 + 8b3aa08 commit 3036cba78840af7033d1b84889d239ed0ea49fe1 @kmike kmike committed Mar 2, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 cssselect/parser.py
View
@@ -617,7 +617,7 @@ def _compile(pattern):
return re.compile(pattern % vars(TokenMacros), re.IGNORECASE).match
_match_whitespace = _compile(r'[ \t\r\n\f]+')
-_match_number = _compile('[+-]?(?:[0-9]*\.[0-9]+|[0-9]+)')
+_match_number = _compile(r'[+-]?(?:[0-9]*\.[0-9]+|[0-9]+)')
_match_hash = _compile('#(?:%(nmchar)s)+')
_match_ident = _compile('-?(?:%(nmstart)s)(?:%(nmchar)s)*')
_match_string_by_quote = {

0 comments on commit 3036cba

Please sign in to comment.