[Python-modules-commits] [python-cssselect] 02/06: Fix #40: broken reporting on selector syntax error
Wolfgang Borgert
debacle at moszumanska.debian.org
Sat Oct 11 23:20:10 UTC 2014
This is an automated email from the git hooks/post-receive script.
debacle pushed a commit to reference refs/remotes/upstream/master
in repository python-cssselect.
commit fd5944a9490f50c94385d6c949fc1d6f39070d18
Author: Simon Sapin <simon.sapin at exyr.org>
Date: Thu Oct 17 17:58:28 2013 +0100
Fix #40: broken reporting on selector syntax error
---
cssselect/parser.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cssselect/parser.py b/cssselect/parser.py
index 8426ab0..d71fdda 100644
--- a/cssselect/parser.py
+++ b/cssselect/parser.py
@@ -684,7 +684,7 @@ def tokenize(s):
if end_pos == len_s:
raise SelectorSyntaxError('Unclosed string at %s' % pos)
if s[end_pos] != quote:
- raise SelectorSyntaxError('Invalid string at %s' % next_pos)
+ raise SelectorSyntaxError('Invalid string at %s' % pos)
value = _sub_simple_escape(_replace_simple,
_sub_unicode_escape(_replace_unicode,
_sub_newline_escape('', match.group())))
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-cssselect.git
More information about the Python-modules-commits
mailing list