Author: Armin Rigo <ar...@tunes.org>
Branch: py3.5
Changeset: r92223:34f222bdfa0b
Date: 2017-08-23 17:29 +0200
http://bitbucket.org/pypy/pypy/changeset/34f222bdfa0b/

Log:    Simplification

diff --git a/pypy/interpreter/typedef.py b/pypy/interpreter/typedef.py
--- a/pypy/interpreter/typedef.py
+++ b/pypy/interpreter/typedef.py
@@ -130,7 +130,7 @@
         return subcls
 _unique_subclass_cache = {}
 
-def _getusercls(cls, reallywantdict=False):
+def _getusercls(cls):
     from rpython.rlib import objectmodel
     from pypy.objspace.std.objectobject import W_ObjectObject
     from pypy.objspace.std.mapdict import (BaseUserClassMapdict,
@@ -144,7 +144,7 @@
     else:
         base_mixin = MapdictStorageMixin
     copy_methods = [BaseUserClassMapdict]
-    if reallywantdict or not typedef.hasdict:
+    if not typedef.hasdict:
         # the type has no dict, mapdict to provide the dict
         copy_methods.append(MapdictDictSupport)
         name += "Dict"
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to