Mercurial > kallithea
changeset 8011:4fcf63512b77
py3: prepare for types.NotImplementedType going away
From 2to3 types.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Sat, 23 Nov 2019 21:40:27 +0100 |
parents | b0c75d6f8f32 |
children | ce5d4c582a82 |
files | kallithea/controllers/api/__init__.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/controllers/api/__init__.py Sat Nov 23 22:17:54 2019 +0100 +++ b/kallithea/controllers/api/__init__.py Sat Nov 23 21:40:27 2019 +0100 @@ -169,7 +169,7 @@ 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),