Author: Ronan Lamy <[email protected]>
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))))
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to