Don't use print

This commit is contained in:
Samuel Sloniker 2022-11-30 18:11:02 -08:00
parent 314ea65427
commit f05d866d84
Signed by: kj7rrv
GPG Key ID: 1BB4029E66285A62
2 changed files with 4 additions and 4 deletions

View File

@ -10,13 +10,13 @@ def get_app_class(template):
try: try:
for file in os.listdir(path): for file in os.listdir(path):
print(file) self.console.write(file)
except OSError as e: except OSError as e:
try: try:
os.stat(path) os.stat(path)
print(path) self.console.write(path)
except OSError: except OSError:
print(f"ls: cannot access '{path}': No such file or directory") self.console.write(f"ls: cannot access '{path}': No such file or directory")
self.exit() self.exit()

View File

@ -5,7 +5,7 @@ def get_app_class(template):
for pid, app in apps.items(): for pid, app in apps.items():
args = app.argv[1:] args = app.argv[1:]
name = app.name name = app.name
print(f'{pid} {name} {args}') self.console.write(f'{pid} {name} {args}')
self.exit() self.exit()
return App return App