/usr/share/pyshared/blockdiag/utils/urlutil.py is in python-blockdiag 1.3.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # -*- coding: utf-8 -*-
try:
    import urlparse
except ImportError:
    import urllib.parse as urlparse
def isurl(url):
    o = urlparse.urlparse(url)
    accpetable = ["http", "https"]
    if o[0] in accpetable:
        return True
    else:
        return False
 |