This commit is contained in:
Kovid Goyal 2025-02-12 08:02:31 +05:30
parent 6ddac37855
commit cfad6bcf39
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -3386,7 +3386,7 @@ See also the functions :ref:`make_url`, :ref:`make_url_extended` and :ref:`encod
raise ValueError( raise ValueError(
_('In {} the third argument of a group must be 0, 1, or 2, not {}').format('query_string', f)) _('In {} the third argument of a group must be 0, 1, or 2, not {}').format('query_string', f))
query_args.append(f'{args[i]}={funcs[int(f)](args[i+1].strip())}') query_args.append(f'{args[i]}={funcs[int(f)](args[i+1].strip())}')
return "&".join(query_args) return '&'.join(query_args)
class BuiltinEncodeForURL(BuiltinFormatterFunction): class BuiltinEncodeForURL(BuiltinFormatterFunction):