Cleanup: quiet Python warnings from ruff

This commit is contained in:
Campbell Barton
2024-10-27 22:35:58 +11:00
parent f3ae90ec96
commit 1cf7781596
11 changed files with 35 additions and 28 deletions

View File

@@ -9,9 +9,11 @@ language_id = "shell"
def add_scrollback(text, text_type):
for l in text.split("\n"):
bpy.ops.console.scrollback_append(text=l.replace("\t", " "),
type=text_type)
for line in text.split("\n"):
bpy.ops.console.scrollback_append(
text=line.replace("\t", " "),
type=text_type,
)
def shell_run(text):