summaryrefslogtreecommitdiffstats
path: root/lldb/third_party/Python/module/pexpect-2.4/examples/ftp.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/third_party/Python/module/pexpect-2.4/examples/ftp.py')
-rw-r--r--lldb/third_party/Python/module/pexpect-2.4/examples/ftp.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/lldb/third_party/Python/module/pexpect-2.4/examples/ftp.py b/lldb/third_party/Python/module/pexpect-2.4/examples/ftp.py
index 89a502e1b8f..c859632709b 100644
--- a/lldb/third_party/Python/module/pexpect-2.4/examples/ftp.py
+++ b/lldb/third_party/Python/module/pexpect-2.4/examples/ftp.py
@@ -24,9 +24,9 @@ child.expect('ftp> ')
child.sendline('pwd')
child.expect('ftp> ')
print("Escape character is '^]'.\n")
-sys.stdout.write (child.after)
+sys.stdout.write(child.after)
sys.stdout.flush()
-child.interact() # Escape character defaults to ^]
+child.interact() # Escape character defaults to ^]
# At this point this script blocks until the user presses the escape character
# or until the child exits. The human user and the child should be talking
# to each other now.
@@ -35,13 +35,13 @@ child.interact() # Escape character defaults to ^]
print 'Left interactve mode.'
# The rest is not strictly necessary. This just demonstrates a few functions.
-# This makes sure the child is dead; although it would be killed when Python exits.
+# This makes sure the child is dead; although it would be killed when
+# Python exits.
if child.isalive():
- child.sendline('bye') # Try to ask ftp child to exit.
+ child.sendline('bye') # Try to ask ftp child to exit.
child.close()
# Print the final state of the child. Normally isalive() should be FALSE.
if child.isalive():
print 'Child did not exit gracefully.'
else:
print 'Child exited gracefully.'
-
OpenPOWER on IntegriCloud