Author: Armin Rigo <[email protected]>
Branch: kill-someobject
Changeset: r58064:06b6e872e89a
Date: 2012-10-12 17:14 +0200
http://bitbucket.org/pypy/pypy/changeset/06b6e872e89a/

Log:    Allow again SomeInstance(classdef=None) for corner cases. Used by
        normalizecalls.py.

diff --git a/pypy/annotation/model.py b/pypy/annotation/model.py
--- a/pypy/annotation/model.py
+++ b/pypy/annotation/model.py
@@ -327,7 +327,6 @@
     "Stands for an instance of a (user-defined) class."
 
     def __init__(self, classdef, can_be_None=False, flags={}):
-        assert classdef is not None
         self.classdef = classdef
         self.knowntype = classdef or object
         self.can_be_None = can_be_None
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to