From deb8d3ba4bc26f7d2ee346c01f5cc6f19a863e96 Mon Sep 17 00:00:00 2001 From: magical Date: Sat, 6 Aug 2022 08:34:41 +0000 Subject: [PATCH] remove unnecessary shell=True's --- clients/urwid/main.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/clients/urwid/main.py b/clients/urwid/main.py index fc771d5..79e831a 100644 --- a/clients/urwid/main.py +++ b/clients/urwid/main.py @@ -1154,7 +1154,7 @@ class App(object): """ self.loop.widget = self.loop.widget[0] self.loop.stop() - call("clear", shell=True) + call("clear") print(welcome) try: log_in(self.network) @@ -1263,7 +1263,7 @@ class App(object): def change_username(self, *_): self.loop.stop() - call("clear", shell=True) + call("clear") try: name = nameloop(self.network, "Choose a new username") self.network.user_update(user_name=name) @@ -1279,7 +1279,7 @@ class App(object): def change_password(self, *_): self.loop.stop() - call("clear", shell=True) + call("clear") try: password = password_loop("Choose a new password. Can be empty") self.network.user_update(auth_hash=self.network._hash(password)) @@ -1965,7 +1965,7 @@ class ExternalEditor(urwid.Terminal): # app.loop.widget = app.loop.widget[0] # if not value: # app.loop.stop() - # call("clear", shell=True) + # call("clear") # print(welcome) # log_in(True) # app.loop.start() @@ -2002,7 +2002,7 @@ class ExternalEditor(urwid.Terminal): # return # else: app.loop.stop() - call("clear", shell=True) + call("clear") print(anon_warn) choice = paren_prompt( "Post anonymously?", default="yes", choices=["Yes", "no"] @@ -2230,13 +2230,13 @@ class ActionBox(urwid.ListBox): elif key == "~": # sssssshhhhhhhh app.loop.stop() - try: call("sl", shell=True) + try: call("sl") except: pass app.loop.start() elif keyl == "$": app.loop.stop() - call("clear", shell=True) + call("clear") readline.set_completer(rlcompleter.Completer().complete) readline.parse_and_bind("tab: complete") interact(banner="Python " + version + "\nBBJ Interactive Console\nCtrl-D exits.", local=globals()) @@ -2284,7 +2284,7 @@ def frilly_exit(): out = " ~~CoMeE BaCkK SooOn~~ 0000000" motherfucking_rainbows(out.zfill(width)) else: - call("clear", shell=True) + call("clear") motherfucking_rainbows("Come back soon! <3") exit() @@ -2554,7 +2554,7 @@ def wipe_screen(*_): will do, I suppose. """ app.loop.stop() - call("clear", shell=True) + call("clear") app.loop.start() # XxX_N0_4rgP4rs3_XxX ###yoloswag @@ -2583,7 +2583,7 @@ def main(): global app app = App(network) - call("clear", shell=True) + call("clear") motherfucking_rainbows(obnoxious_logo) print(welcome) try: