[pypy-commit] pypy py3k: no longer subclassable

pjenvey pypy.commits at gmail.com
Sat May 21 15:44:52 EDT 2016


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r84552:a2de5fa46655
Date: 2016-05-21 12:42 -0700
http://bitbucket.org/pypy/pypy/changeset/a2de5fa46655/

Log:	no longer subclassable

diff --git a/pypy/module/bz2/interp_bz2.py b/pypy/module/bz2/interp_bz2.py
--- a/pypy/module/bz2/interp_bz2.py
+++ b/pypy/module/bz2/interp_bz2.py
@@ -349,7 +349,7 @@
     compress = interp2app(W_BZ2Compressor.compress),
     flush = interp2app(W_BZ2Compressor.flush),
 )
-
+W_BZ2Compressor.typedef.acceptable_as_base_class = False
 
 def descr_decompressor__new__(space, w_subtype):
     x = space.allocate_instance(W_BZ2Decompressor, w_subtype)
@@ -457,3 +457,4 @@
     eof = GetSetProperty(W_BZ2Decompressor.eof_w),
     decompress = interp2app(W_BZ2Decompressor.decompress),
 )
+W_BZ2Decompressor.typedef.acceptable_as_base_class = False


More information about the pypy-commit mailing list