# HG changeset patch # User Mads Kiilerich # Date 2019-11-23 21:40:27 # Node ID 4fcf63512b77a166bd6c047c16c55f3a8d1bf085 # Parent b0c75d6f8f3242ea673a24b0e126b0d1b46613f7 py3: prepare for types.NotImplementedType going away From 2to3 types. diff --git a/kallithea/controllers/api/__init__.py b/kallithea/controllers/api/__init__.py --- a/kallithea/controllers/api/__init__.py +++ b/kallithea/controllers/api/__init__.py @@ -169,7 +169,7 @@ class JSONRPCController(TGController): argspec = inspect.getargspec(self._func) arglist = argspec[0][1:] defaults = map(type, argspec[3] or []) - default_empty = types.NotImplementedType + default_empty = type(NotImplemented) # kw arguments required by this method func_kwargs = dict(itertools.izip_longest(reversed(arglist), reversed(defaults),