Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r66251:ded906e02c44 Date: 2013-08-20 10:38 +0200 http://bitbucket.org/pypy/pypy/changeset/ded906e02c44/
Log: Fix the XXX 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,10 +115,7 @@ for function, negate in category_dispatch_unroll: if category_code == i: result = function(char_code) - if negate: - return not result # XXX this might lead to a guard - else: - return result + return result ^ negate i = i + 1 else: return False @@ -160,9 +157,7 @@ ppos += 1 else: return False - if negated: - return not result - return result + return result ^ negated 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