32c32
< import types
---
> from types import FunctionType
105,111c105,111
< init_keywords = { 'abstract' : types.BooleanType,
< 'cxx_class' : types.StringType,
< 'cxx_type' : types.StringType,
< 'cxx_predecls' : types.ListType,
< 'swig_objdecls' : types.ListType,
< 'swig_predecls' : types.ListType,
< 'type' : types.StringType }
---
> init_keywords = { 'abstract' : bool,
> 'cxx_class' : str,
> 'cxx_type' : str,
> 'cxx_predecls' : list,
> 'swig_objdecls' : list,
> 'swig_predecls' : list,
> 'type' : str }
113c113
< keywords = { 'check' : types.FunctionType }
---
> keywords = { 'check' : FunctionType }
129,130c129,131
< if key.startswith('_') or isinstance(val, (types.FunctionType,
< types.TypeType)):
---
> if key.startswith('_') or isinstance(val, (FunctionType,
> classmethod,
> type)):
236c237
< if isinstance(val, types.FunctionType):
---
> if isinstance(val, FunctionType):