Mercurial > hg-stable
view tests/svnurlof.py @ 41903:2bad8f92cebf
py3: use fsencode for vcr recording paths and strings for custom_patches args
This fixes phabricator.py's vcrcommand under py3
Differential Revision: https://phab.mercurial-scm.org/D6102
author | Ian Moody <moz-ian@perix.co.uk> |
---|---|
date | Fri, 08 Mar 2019 17:57:59 +0000 |
parents | eb6700e6c5ea |
children | 2372284d9457 |
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)