[pypy-commit] pypy py3.6: Fix incompatibility between branch fix-sre-problems and 77d216c5b248
rlamy
pypy.commits at gmail.com
Thu Apr 19 15:38:24 EDT 2018
Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: py3.6
Changeset: r94385:020c87e1474f
Date: 2018-04-19 20:37 +0100
http://bitbucket.org/pypy/pypy/changeset/020c87e1474f/
Log: Fix incompatibility between branch fix-sre-problems and 77d216c5b248
diff --git a/pypy/module/_sre/interp_sre.py b/pypy/module/_sre/interp_sre.py
--- a/pypy/module/_sre/interp_sre.py
+++ b/pypy/module/_sre/interp_sre.py
@@ -144,11 +144,11 @@
# indexgroup nor groupindex: they are derivated from the pattern.
return space.newbool(
self.flags == other.flags and
- self.code == other.code and
+ self.code.pattern == other.code.pattern and
space.eq_w(self.w_pattern, other.w_pattern))
def descr_hash(self, space):
- code = ''.join([chr(c) for c in self.code])
+ code = ''.join([chr(c) for c in self.code.pattern])
return space.newint(compute_hash(
(self.flags, code, space.hash_w(self.w_pattern))))
More information about the pypy-commit
mailing list