Commit 150d7b47 authored by Luke Macken's avatar Luke Macken

One less line in the shell

parent 24814a79
...@@ -26,8 +26,7 @@ def shell(): ...@@ -26,8 +26,7 @@ def shell():
print("Usage: pyrasite-shell <PID>") print("Usage: pyrasite-shell <PID>")
sys.exit(1) sys.exit(1)
pid = int(sys.argv[1]) ipc = pyrasite.PyrasiteIPC(int(sys.argv[1]))
ipc = pyrasite.PyrasiteIPC(pid)
ipc.connect() ipc.connect()
print("pyrasite shell %s" % pyrasite.__version__) print("pyrasite shell %s" % pyrasite.__version__)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment