# HG changeset patch # User Mads Kiilerich # Date 2020-02-05 23:03:23 # Node ID abb00ff224b66518ff5140a085455efa08e4d830 # Parent 21f7b699d4672426b8b2f1ea6ef5fa3c7de1cc3d py3: automatic migration with 2to3 -f itertools 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 @@ -172,7 +172,7 @@ class JSONRPCController(TGController): default_empty = type(NotImplemented) # kw arguments required by this method - func_kwargs = dict(itertools.izip_longest(reversed(arglist), reversed(defaults), + func_kwargs = dict(itertools.zip_longest(reversed(arglist), reversed(defaults), fillvalue=default_empty)) # This attribute will need to be first param of a method that uses