core: fix NameError in Latch.put(), FileService exception

pull/295/head
David Wilson 6 years ago
parent 5da371c5dd
commit 3a8ea930d7

@ -694,7 +694,7 @@ class Importer(object):
suffix = fullname[len(pkgname+dot):]
if pkgname and suffix not in self._present.get(pkgname, ()):
_v and LOG.debug('%r: master doesn\'t know %r', self, fullname)
LOG.debug('%r: master doesn\'t know %r', self, fullname)
return None
# #114: explicitly whitelisted prefixes override any
@ -1396,7 +1396,7 @@ class Latch(object):
wsock, cookie = self._sleeping[self._waking]
self._waking += 1
_vv and IOLOG.debug('%r.put() -> waking wfd=%r',
self, sock.fileno())
self, wsock.fileno())
self._wake(wsock, cookie)
finally:
self._lock.release()

@ -778,7 +778,7 @@ class FileService(Service):
st = os.stat(path)
if not stat.S_ISREG(st.st_mode):
raise IOError('%r is not a regular file.' % (in_path,))
raise IOError('%r is not a regular file.' % (path,))
LOG.debug('%r: registering %r', self, path)
self._metadata_by_path[path] = {
@ -920,7 +920,7 @@ class FileService(Service):
:param mitogen.core.Context context:
Reference to the context hosting the FileService that will be used
to fetch the file.
:param bytes in_path:
:param bytes path:
FileService registered name of the input file.
:param bytes out_path:
Name of the output path on the local disk.

Loading…
Cancel
Save