The modules typesno longer have a link NoneType. You should simply verify your identity with Nonedirectly, i.e. obj is None. An alternative way, if you really need to NoneType, is to get it with:
NoneType = type(None)
This is actually the same method that was previously defined types.NoneTypebefore it was deleted on November 28, 2007 .
, from .. import, import types, .