Mercurial > hg
view tests/svnurlof.py @ 48837:12cba4886e90
setup: remove Rust support for Python 2
Differential Revision: https://phab.mercurial-scm.org/D12281
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 02 Mar 2022 10:29:54 -0500 |
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)