Port automasq to Python 3

This commit is contained in:
Danielle McLean 2023-09-18 09:46:29 +10:00
parent 48fee6ab65
commit 567fdda4be
Signed by: 00dani
GPG key ID: 52C059C3B22A753E

View file

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python3
"""OSX-based script to watch for changes to network state and write out a
second resolv.conf file containing the DHCP provided nameservers, intended
for use with a local resolver such as dnsmasq. This is to workaround the
@ -84,7 +84,7 @@ def main(filename, options):
try:
watcher = Watcher(filename, defaults_filename=options.default,
append_defaults=options.append_defaults)
except KeyboardInterrupt, e:
except KeyboardInterrupt as e:
# exiting
pass