tests/svnurlof.py
author Matt Harbison <matt_harbison@yahoo.com>
Fri, 25 Oct 2024 23:09:10 -0400
changeset 52129 ff13068e9b1c
parent 48875 6000f5b25c9b
permissions -rw-r--r--
tests: enable pytype checking on `mercurial/wireprotoframing.py`

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)