diff options
author | AbbalYouness <abbal.youness@gmail.com> | 2018-10-17 09:46:26 +0200 |
---|---|---|
committer | Brian May <brian@linuxpenguins.xyz> | 2018-10-17 20:53:06 +1100 |
commit | 41f5b3e9c12808f512b85c715e430fbd109f4742 (patch) | |
tree | acfdf701ddef7676f1b3049500d3148b38f7e2f4 /sshuttle/hostwatch.py | |
parent | c780597de37ed360826cfa33676dbfd8d89de6f0 (diff) |
replace path /dev/null by os.devnull
Diffstat (limited to 'sshuttle/hostwatch.py')
-rw-r--r-- | sshuttle/hostwatch.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sshuttle/hostwatch.py b/sshuttle/hostwatch.py index 94b462f..64ff43a 100644 --- a/sshuttle/hostwatch.py +++ b/sshuttle/hostwatch.py @@ -21,7 +21,7 @@ _smb_ok = True hostnames = {} queue = {} try: - null = open('/dev/null', 'wb') + null = open(os.devnull, 'wb') except IOError: _, e = sys.exc_info()[:2] log('warning: %s\n' % e) |