Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r66265:229673529cf2 Date: 2013-08-20 16:57 +0200 http://bitbucket.org/pypy/pypy/changeset/229673529cf2/
Log: backout ded906e02c44 for now diff --git a/rpython/rlib/rsre/rsre_char.py b/rpython/rlib/rsre/rsre_char.py --- a/rpython/rlib/rsre/rsre_char.py +++ b/rpython/rlib/rsre/rsre_char.py @@ -115,7 +115,10 @@ for function, negate in category_dispatch_unroll: if category_code == i: result = function(char_code) - return result ^ negate + if negate: + return not result # XXX this might lead to a guard + else: + return result i = i + 1 else: return False @@ -157,7 +160,9 @@ ppos += 1 else: return False - return result ^ negated + if negated: + return not result + return result def set_literal(pat, index, char_code): # <LITERAL> <code> _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit