#24 loosen strict assertion

closed
WebKit (58)
5
2003-01-09
2002-11-09
No

In the file ServletFactory.py there is an assertion on line
187 (in my version):

>>> assert type(theClass) is ClassType

yet if it was

>>> assert type(theClass) is ClassType or
isinstance(theClass, type)

then it could handle new-style classes as well. That
would be great for me because I use metaclasses.

Discussion

  • Stuart Donaldson

    • assigned_to: nobody --> stuartd
     
  • Ian Bicking

    Ian Bicking - 2003-01-09
    • status: open --> closed
     

Log in to post a comment.