fix lint errors

This commit is contained in:
Scott Kuhl 2021-06-02 15:32:04 -04:00
parent 560c6b4ce8
commit d3f4889f21

View File

@ -15,6 +15,8 @@ POLL_TIME = 60 * 15
NETSTAT_POLL_TIME = 30
CACHEFILE = os.path.expanduser('~/.sshuttle.hosts')
# Have we already failed to write CACHEFILE?
CACHE_WRITE_FAILED = False
hostnames = {}
queue = {}
@ -29,7 +31,7 @@ except IOError:
def _is_ip(s):
return re.match(r'\d+\.\d+\.\d+\.\d+$', s)
CACHE_WRITE_FAILED = False
def write_host_cache():
"""If possible, write our hosts file to disk so future connections
can reuse the hosts that we already found."""