/usr/share/doc/python-getdns-doc/examples/print-version.py is in python-getdns-doc 1.0.0~b1-1build4.
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 | #!/usr/bin/env python
import getdns
ctx = getdns.Context()
try:
print(ctx.get_api_information()['version_string'])
except getdns.error as e:
print(str(e))
sys.exit(1)
|