Skip to content

Commit 1843f18

Browse files
committed
[stream-refactor] fix flake8 errors
1 parent 0e6de53 commit 1843f18

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

mitogen/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@ def wrapper(func):
111111
if profiling:
112112
mitogen.core.enable_profiling()
113113
mitogen.master.Router.profiling = profiling
114-
utils.log_to_file(level=log_level)
114+
mitogen.utils.log_to_file(level=log_level)
115115
return mitogen.core._profile_hook(
116116
'app.main',
117-
utils.run_with_router,
117+
mitogen.utils.run_with_router,
118118
func,
119119
)
120120
return wrapper

mitogen/debug.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def _on_debug_msg(self, msg):
230230
def _handle_debug_msg(self, msg):
231231
try:
232232
method, args, kwargs = msg.unpickle()
233-
msg.reply(getattr(cls, method)(*args, **kwargs))
233+
msg.reply(getattr(self, method)(*args, **kwargs))
234234
except Exception:
235235
e = sys.exc_info()[1]
236236
msg.reply(mitogen.core.CallError(e))

mitogen/unix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def build_stream(cls, router, path=None, backlog=100):
8585
path = make_socket_path()
8686
sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
8787
if os.path.exists(path) and is_path_dead(path):
88-
LOG.debug('%r: deleting stale %r', self, path)
88+
LOG.debug('%r: deleting stale %r', cls.__name__, path)
8989
os.unlink(path)
9090

9191
sock.bind(path)

0 commit comments

Comments
 (0)