view tests/readlink.py @ 29378:fea71f66ebff

url: remember http password database in ui object This makes http password database stored in ui object. It allows reusing authentication information when we use this database for creating password manager for the new connection.
author liscju <piotr.listkiewicz@gmail.com>
date Thu, 09 Jun 2016 11:41:36 +0200
parents 7bcfb9090c86
children 6a98f9408a50
line wrap: on
line source

#!/usr/bin/env python

from __future__ import print_function

import errno, os, sys

for f in sys.argv[1:]:
    try:
        print(f, '->', os.readlink(f))
    except OSError as err:
        if err.errno != errno.EINVAL:
            raise
        print(f, '->', f, 'not a symlink')

sys.exit(0)