X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d14a1e28567de23c586bc80017073d0c39f8d18f..6a8b9da42c22b34c1f8ea5f10080e7c51e21a330:/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