#24 loosen strict assertion

closed
WebKit (58)
5
2003-01-09
2002-11-09
Dan Parisien
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

    • assigned_to: nobody --> stuartd
     
  • Ian Bicking
    Ian Bicking
    2003-01-09

    • status: open --> closed