X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d14a1e28567de23c586bc80017073d0c39f8d18f..bc93670d3b2b69ea2cdd799444b57dce24b8be94:/wxPython/wx/lib/wxpTag.py diff --git a/wxPython/wx/lib/wxpTag.py b/wxPython/wx/lib/wxpTag.py index 1981f5b02d..49e5c4475b 100644 --- a/wxPython/wx/lib/wxpTag.py +++ b/wxPython/wx/lib/wxpTag.py @@ -136,7 +136,7 @@ class wxpTagHandler(wxHtmlWinTagHandler): className = tag.GetParam('CLASS') self.ctx.classObj = getattr(self.ctx.classMod, className) - if type(self.ctx.classObj) != types.ClassType: + if type(self.ctx.classObj) not in [ types.ClassType, types.TypeType]: raise TypeError, "WXP tag attribute CLASS must name a class" # now look for width and height