mercurial/hgweb/wsgiheaders.py
changeset 44021 6d3b67a837a6
parent 43503 313e3a279828
child 48875 6000f5b25c9b
equal deleted inserted replaced
44020:ac3cb5e05a38 44021:6d3b67a837a6
    11 # existence of which force quoting of the parameter value.
    11 # existence of which force quoting of the parameter value.
    12 from __future__ import absolute_import, print_function
    12 from __future__ import absolute_import, print_function
    13 
    13 
    14 import re
    14 import re
    15 
    15 
    16 tspecials = re.compile(br'[ \(\)<>@,;:\\"/\[\]\?=]')
    16 tspecials = re.compile(br'[ ()<>@,;:\\"/\[\]?=]')
    17 
    17 
    18 
    18 
    19 def _formatparam(param, value=None, quote=1):
    19 def _formatparam(param, value=None, quote=1):
    20     """Convenience function to format and return a key=value pair.
    20     """Convenience function to format and return a key=value pair.
    21     This will quote the value if needed or if quote is true.
    21     This will quote the value if needed or if quote is true.