Mercurial > hg
view tests/svnurlof.py @ 41526:1be7a9b994a2
py3: add some b'' prefixes in test-notify.t
# skip-blame as just b'' prefixes
Differential Revision: https://phab.mercurial-scm.org/D5811
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Sun, 03 Feb 2019 17:15:11 +0530 |
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)