remove unnecessary shell=True's

master
magical 2022-08-06 08:34:41 +00:00
parent f63233dbb7
commit deb8d3ba4b
1 changed files with 10 additions and 10 deletions

View File

@ -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: