Mercurial > hg
view tests/svnurlof.py @ 43401:09537caa87f9 stable
py3: add Python 3 exception output to test-lfs-serve-access.t
Similar to a973a75e92bf or 3e9c6cef949b.
author | Denis Laxalde <denis@laxalde.org> |
---|---|
date | Mon, 04 Nov 2019 16:04:09 +0100 |
parents | 2372284d9457 |
children | 6000f5b25c9b |
line wrap: on
line source
from __future__ import absolute_import, print_function import sys from mercurial import ( pycompat, util, ) def main(argv): enc = util.urlreq.quote(pycompat.sysbytes(argv[1])) if pycompat.iswindows: fmt = 'file:///%s' else: fmt = 'file://%s' print(fmt % pycompat.sysstr(enc)) if __name__ == '__main__': main(sys.argv)