From 17ef381d7c9d918f131a44f5ad42e481226e97d5 Mon Sep 17 00:00:00 2001 From: ibuler Date: Wed, 24 Dec 2014 22:42:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D=EF=BC=8C=E4=BF=AE=E6=94=B9bu?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jump.py => connect.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename jump.py => connect.py (98%) mode change 100755 => 100644 diff --git a/jump.py b/connect.py old mode 100755 new mode 100644 similarity index 98% rename from jump.py rename to connect.py index 955943cb2..d5a4793d7 --- a/jump.py +++ b/connect.py @@ -222,7 +222,7 @@ def connect(username, password, host, port): if __name__ == '__main__': - username = os.getlogin() + login_name = os.getlogin() print_prompt() try: while True: @@ -231,7 +231,7 @@ if __name__ == '__main__': except EOFError: continue if option in ['P', 'p']: - print_user_host(username) + print_user_host(login_name) continue elif option in ['E', 'e']: pass