summaryrefslogtreecommitdiffstats
path: root/lldb/third_party/Python/module/pexpect-2.4/examples/df.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/third_party/Python/module/pexpect-2.4/examples/df.py')
-rw-r--r--lldb/third_party/Python/module/pexpect-2.4/examples/df.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/lldb/third_party/Python/module/pexpect-2.4/examples/df.py b/lldb/third_party/Python/module/pexpect-2.4/examples/df.py
index 64bbf93a1b2..e6c06a8fb13 100644
--- a/lldb/third_party/Python/module/pexpect-2.4/examples/df.py
+++ b/lldb/third_party/Python/module/pexpect-2.4/examples/df.py
@@ -9,15 +9,15 @@ Apple OSX. """
import pexpect
-child = pexpect.spawn ('df')
+child = pexpect.spawn('df')
# parse 'df' output into a list.
pattern = "\n(\S+).*?([0-9]+)%"
filesystem_list = []
-for dummy in range (0, 1000):
- i = child.expect ([pattern, pexpect.EOF])
+for dummy in range(0, 1000):
+ i = child.expect([pattern, pexpect.EOF])
if i == 0:
- filesystem_list.append (child.match.groups())
+ filesystem_list.append(child.match.groups())
else:
break
@@ -31,4 +31,3 @@ for m in filesystem_list:
else:
s = ' ' + s
print s
-
OpenPOWER on IntegriCloud