Port automasq to Python 3
This commit is contained in:
parent
48fee6ab65
commit
567fdda4be
1 changed files with 2 additions and 2 deletions
|
@ -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
|
"""OSX-based script to watch for changes to network state and write out a
|
||||||
second resolv.conf file containing the DHCP provided nameservers, intended
|
second resolv.conf file containing the DHCP provided nameservers, intended
|
||||||
for use with a local resolver such as dnsmasq. This is to workaround the
|
for use with a local resolver such as dnsmasq. This is to workaround the
|
||||||
|
@ -84,7 +84,7 @@ def main(filename, options):
|
||||||
try:
|
try:
|
||||||
watcher = Watcher(filename, defaults_filename=options.default,
|
watcher = Watcher(filename, defaults_filename=options.default,
|
||||||
append_defaults=options.append_defaults)
|
append_defaults=options.append_defaults)
|
||||||
except KeyboardInterrupt, e:
|
except KeyboardInterrupt as e:
|
||||||
# exiting
|
# exiting
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue