summaryrefslogtreecommitdiff
path: root/Lib/cmd.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-08-09 21:40:30 +0000
committerTim Peters <tim.peters@gmail.com>2001-08-09 21:40:30 +0000
commitc63494140e6611b3c3469a0fc9540fd1d65430d9 (patch)
treedd824219b2aca4d65d5b3fcfe9e7c4bcd9a56fd4 /Lib/cmd.py
parent8474ecfa9a267300886e1617b6808e4ec05535f2 (diff)
downloadcpython-c63494140e6611b3c3469a0fc9540fd1d65430d9.tar.gz
Whitespace normalization.
Diffstat (limited to 'Lib/cmd.py')
-rw-r--r--Lib/cmd.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/cmd.py b/Lib/cmd.py
index 423494a04d..2a7be43083 100644
--- a/Lib/cmd.py
+++ b/Lib/cmd.py
@@ -20,14 +20,14 @@ Interpreters constructed with this class obey the following conventions:
arguments text, line, begidx, endidx. text is string we are matching
against, all returned matches must begin with it. line is the current
input line (lstripped), begidx and endidx are the beginning and end
- indexes of the text being matched, which could be used to provide
+ indexes of the text being matched, which could be used to provide
different completion depending upon which position the argument is in.
The `default' method may be overridden to intercept commands for which there
is no do_ method.
The `completedefault' method may be overridden to intercept completions for
-commands that have no complete_ method.
+commands that have no complete_ method.
The data member `self.ruler' sets the character used to draw separator lines
in the help messages. If empty, no ruler line is drawn. It defaults to "=".
@@ -66,7 +66,7 @@ class Cmd:
nohelp = "*** No help on %s"
use_rawinput = 1
- def __init__(self, completekey='tab'):
+ def __init__(self, completekey='tab'):
if completekey:
try:
import readline
@@ -131,7 +131,7 @@ class Cmd:
while i < n and line[i] in self.identchars: i = i+1
cmd, arg = line[:i], line[i:].strip()
return cmd, arg, line
-
+
def onecmd(self, line):
cmd, arg, line = self.parseline(line)
if not line:
@@ -191,7 +191,7 @@ class Cmd:
return self.completion_matches[state]
except IndexError:
return None
-
+
def get_names(self):
# Inheritance says we have to look in class and
# base classes; order is not important.