Skip to content

Commit 0486eda

Browse files
Fix lazy % formatting and typo stdout / stderr
1 parent b941336 commit 0486eda

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

astroid/manager.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,15 @@ def ast_from_module_name(self, modname, context_file=None):
193193
) from e
194194
if stderr.getvalue():
195195
logger.error(
196-
f"Captured stderr from importing {modname}:\n{stdout.getvalue()}"
196+
"Captured stderr from importing %s:\n%s",
197+
modname,
198+
stderr.getvalue(),
197199
)
198200
if stdout.getvalue():
199201
logger.info(
200-
f"Captured stdout from importing {modname}:\n{stdout.getvalue()}"
202+
"Captured stdout from importing %s:\n%s",
203+
modname,
204+
stdout.getvalue(),
201205
)
202206

203207
return self.ast_from_module(module, modname)

0 commit comments

Comments
 (0)