/usr/bin/sqlobject-convertOldURI is in sqlobject-admin 3.4.0+dfsg-1.
This file is owned by root:root, with mode 0o755.
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 16 17 18 19 | #!/usr/bin/python3
from __future__ import print_function
import sys
try:
uri = sys.argv[1]
except IndexError:
sys.exit("Usage: %s old-style-URI" % sys.argv[0])
try:
import pkg_resources
pkg_resources.require('SQLObject>=1.0.0')
except (ImportError, pkg_resources.DistributionNotFound):
pass
from sqlobject import connectionForURI
conn = connectionForURI(uri, oldUri=True)
print(conn.uri())
|