remove unnecessary shell=True's
parent
f63233dbb7
commit
deb8d3ba4b
|
@ -1154,7 +1154,7 @@ class App(object):
|
||||||
"""
|
"""
|
||||||
self.loop.widget = self.loop.widget[0]
|
self.loop.widget = self.loop.widget[0]
|
||||||
self.loop.stop()
|
self.loop.stop()
|
||||||
call("clear", shell=True)
|
call("clear")
|
||||||
print(welcome)
|
print(welcome)
|
||||||
try:
|
try:
|
||||||
log_in(self.network)
|
log_in(self.network)
|
||||||
|
@ -1263,7 +1263,7 @@ class App(object):
|
||||||
|
|
||||||
def change_username(self, *_):
|
def change_username(self, *_):
|
||||||
self.loop.stop()
|
self.loop.stop()
|
||||||
call("clear", shell=True)
|
call("clear")
|
||||||
try:
|
try:
|
||||||
name = nameloop(self.network, "Choose a new username")
|
name = nameloop(self.network, "Choose a new username")
|
||||||
self.network.user_update(user_name=name)
|
self.network.user_update(user_name=name)
|
||||||
|
@ -1279,7 +1279,7 @@ class App(object):
|
||||||
|
|
||||||
def change_password(self, *_):
|
def change_password(self, *_):
|
||||||
self.loop.stop()
|
self.loop.stop()
|
||||||
call("clear", shell=True)
|
call("clear")
|
||||||
try:
|
try:
|
||||||
password = password_loop("Choose a new password. Can be empty")
|
password = password_loop("Choose a new password. Can be empty")
|
||||||
self.network.user_update(auth_hash=self.network._hash(password))
|
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]
|
# app.loop.widget = app.loop.widget[0]
|
||||||
# if not value:
|
# if not value:
|
||||||
# app.loop.stop()
|
# app.loop.stop()
|
||||||
# call("clear", shell=True)
|
# call("clear")
|
||||||
# print(welcome)
|
# print(welcome)
|
||||||
# log_in(True)
|
# log_in(True)
|
||||||
# app.loop.start()
|
# app.loop.start()
|
||||||
|
@ -2002,7 +2002,7 @@ class ExternalEditor(urwid.Terminal):
|
||||||
# return
|
# return
|
||||||
# else:
|
# else:
|
||||||
app.loop.stop()
|
app.loop.stop()
|
||||||
call("clear", shell=True)
|
call("clear")
|
||||||
print(anon_warn)
|
print(anon_warn)
|
||||||
choice = paren_prompt(
|
choice = paren_prompt(
|
||||||
"Post anonymously?", default="yes", choices=["Yes", "no"]
|
"Post anonymously?", default="yes", choices=["Yes", "no"]
|
||||||
|
@ -2230,13 +2230,13 @@ class ActionBox(urwid.ListBox):
|
||||||
elif key == "~":
|
elif key == "~":
|
||||||
# sssssshhhhhhhh
|
# sssssshhhhhhhh
|
||||||
app.loop.stop()
|
app.loop.stop()
|
||||||
try: call("sl", shell=True)
|
try: call("sl")
|
||||||
except: pass
|
except: pass
|
||||||
app.loop.start()
|
app.loop.start()
|
||||||
|
|
||||||
elif keyl == "$":
|
elif keyl == "$":
|
||||||
app.loop.stop()
|
app.loop.stop()
|
||||||
call("clear", shell=True)
|
call("clear")
|
||||||
readline.set_completer(rlcompleter.Completer().complete)
|
readline.set_completer(rlcompleter.Completer().complete)
|
||||||
readline.parse_and_bind("tab: complete")
|
readline.parse_and_bind("tab: complete")
|
||||||
interact(banner="Python " + version + "\nBBJ Interactive Console\nCtrl-D exits.", local=globals())
|
interact(banner="Python " + version + "\nBBJ Interactive Console\nCtrl-D exits.", local=globals())
|
||||||
|
@ -2284,7 +2284,7 @@ def frilly_exit():
|
||||||
out = " ~~CoMeE BaCkK SooOn~~ 0000000"
|
out = " ~~CoMeE BaCkK SooOn~~ 0000000"
|
||||||
motherfucking_rainbows(out.zfill(width))
|
motherfucking_rainbows(out.zfill(width))
|
||||||
else:
|
else:
|
||||||
call("clear", shell=True)
|
call("clear")
|
||||||
motherfucking_rainbows("Come back soon! <3")
|
motherfucking_rainbows("Come back soon! <3")
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
|
@ -2554,7 +2554,7 @@ def wipe_screen(*_):
|
||||||
will do, I suppose.
|
will do, I suppose.
|
||||||
"""
|
"""
|
||||||
app.loop.stop()
|
app.loop.stop()
|
||||||
call("clear", shell=True)
|
call("clear")
|
||||||
app.loop.start()
|
app.loop.start()
|
||||||
|
|
||||||
# XxX_N0_4rgP4rs3_XxX ###yoloswag
|
# XxX_N0_4rgP4rs3_XxX ###yoloswag
|
||||||
|
@ -2583,7 +2583,7 @@ def main():
|
||||||
|
|
||||||
global app
|
global app
|
||||||
app = App(network)
|
app = App(network)
|
||||||
call("clear", shell=True)
|
call("clear")
|
||||||
motherfucking_rainbows(obnoxious_logo)
|
motherfucking_rainbows(obnoxious_logo)
|
||||||
print(welcome)
|
print(welcome)
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue