Skip to content

Commit

Permalink
remove some boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
Bubobubobubobubo committed Aug 28, 2022
1 parent b2e5143 commit dc4e2b7
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions fishery/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,8 @@ def callback():
class REPLThread(threading.Thread):
def run(self):
try:
banner = (
f"asyncio REPL {sys.version} on {sys.platform}\n"
f'Use "await" directly instead of "asyncio.run()".\n'
f'Type "help", "copyright", "credits" or "license" '
f"for more information.\n"
f'{getattr(sys, "ps1", ">>> ")}'
)

# console.runsource('import functools')

banner = ()
console.push("""from sardine import *""")

console.interact(banner=banner, exitmsg="exiting asyncio REPL...")

finally:
Expand Down

0 comments on commit dc4e2b7

Please sign in to comment.