diff contrib/Makefile.python @ 29630:67b180c0e263 stable

extdiff: escape path for docstring (issue5301) The existing code (a) assumed path would be specified in encoding.encoding and (b) assumed unicode() objects wouldn't cause other parts of Mercurial to blow up. Both are dangerous assumptions. Since we don't know the encoding of path and can't pass non-ASCII through docstrings, just escape the path and drop the early _(). Will have to suffice until we can teach docstrings to handle UTF-8b escaping. This has the side-effect that the line containing the path is now variable by the time it reaches _() and thus can't be translated.
author Matt Mackall <mpm@selenic.com>
date Mon, 18 Jul 2016 16:25:35 -0500
parents 9f8b8c4e5076
children 5e947367606c
line wrap: on
line diff