Mercurial > kallithea
changeset 8431:0f3a584edcb3 stable
ini: explain how % must be escaped as %% (Issue #375)
Gearbox / paste would fail with:
configparser.InterpolationSyntaxError: '%' must be followed by '%' or '('
The special handling of % is standard configparser behaviour, unless explicitly
fetching raw settings.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Fri, 22 May 2020 15:10:00 +0200 |
parents | 642e6d7d18c4 |
children | 3dfe049ec965 |
files | development.ini kallithea/lib/paster_commands/template.ini.mako |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/development.ini Fri May 22 14:02:55 2020 +0200 +++ b/development.ini Fri May 22 15:10:00 2020 +0200 @@ -2,7 +2,8 @@ ################################################################################### ## Kallithea config file generated with kallithea-config ## ## ## -## The %(here)s variable will be replaced with the parent directory of this file ## +## The %(here)s variable will generally be replaced with the parent directory of ## +## this file. Other use of % must be escaped as %% . ## ################################################################################### ###################################################################################
--- a/kallithea/lib/paster_commands/template.ini.mako Fri May 22 14:02:55 2020 +0200 +++ b/kallithea/lib/paster_commands/template.ini.mako Fri May 22 15:10:00 2020 +0200 @@ -3,7 +3,8 @@ <%text>##</%text>################################################################################# <%text>##</%text> Kallithea config file generated with kallithea-config ${'%-24s' % version }## <%text>##</%text> ## -<%text>##</%text> The %(here)s variable will be replaced with the parent directory of this file ## +<%text>##</%text> The %(here)s variable will generally be replaced with the parent directory of ## +<%text>##</%text> this file. Other use of % must be escaped as %% . ## <%text>##</%text>################################################################################# <%text>##</%text>#################################################################################