mirror of
https://github.com/markqvist/NomadNet.git
synced 2024-10-01 01:26:07 -04:00
Cleanup
Some checks failed
Create and publish a Docker image / build-and-push-image (push) Has been cancelled
Some checks failed
Create and publish a Docker image / build-and-push-image (push) Has been cancelled
This commit is contained in:
parent
18cc588f93
commit
ecb6ca6553
@ -78,13 +78,10 @@ class LogTail(urwid.WidgetWrap):
|
||||
|
||||
|
||||
def log_widget(app, platform=sys.platform):
|
||||
if platform == "linux":
|
||||
return LogTerminal(app)
|
||||
elif platform == "win32":
|
||||
if platform == "win32":
|
||||
return LogTail(app)
|
||||
else:
|
||||
raise ValueError(f"Unknown platform {platform}. Expected linux/win32")
|
||||
|
||||
return LogTerminal(app)
|
||||
|
||||
# https://stackoverflow.com/a/34029605/3713120
|
||||
def _tail(f_name, n, offset=0):
|
||||
|
Loading…
Reference in New Issue
Block a user