diff --git a/mitogen/core.py b/mitogen/core.py index b6936a40..53f32bb0 100644 --- a/mitogen/core.py +++ b/mitogen/core.py @@ -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() diff --git a/mitogen/service.py b/mitogen/service.py index 38f7ad9b..8af02d0e 100644 --- a/mitogen/service.py +++ b/mitogen/service.py @@ -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.