python3: fixed various code issues

- iterators
- use of u''
This commit is contained in:
RhodeCode Admin 2023-03-20 20:51:25 +01:00
parent 7556b374d5
commit 34af9cfa2f
39 changed files with 182 additions and 188 deletions

View file

@ -352,7 +352,7 @@ def get_method(request, apiuser, pattern=Optional('*')):
default_empty = '<RequiredType>'
# kw arguments required by this method
func_kwargs = dict(itertools.izip_longest(
func_kwargs = dict(itertools.zip_longest(
reversed(arglist), reversed(defaults), fillvalue=default_empty))
args_desc.append(func_kwargs)