summaryrefslogtreecommitdiff
path: root/Lib/cmd.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-02-09 04:52:11 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-02-09 04:52:11 +0000
commit7579d4c647f07e5dcb26c4133310c6f8958b832a (patch)
tree35d64f61c53ab516275b1db1493e214c0408d87f /Lib/cmd.py
parent804fa01434fb4b57a54d6c7d9a431542512ce678 (diff)
downloadcpython-7579d4c647f07e5dcb26c4133310c6f8958b832a.tar.gz
String method conversion.
Diffstat (limited to 'Lib/cmd.py')
-rw-r--r--Lib/cmd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/cmd.py b/Lib/cmd.py
index 2b20f954ea..dcf601f4f2 100644
--- a/Lib/cmd.py
+++ b/Lib/cmd.py
@@ -91,7 +91,7 @@ class Cmd:
pass
def onecmd(self, line):
- line = string.strip(line)
+ line = line.strip()
if not line:
return self.emptyline()
elif line[0] == '?':
@@ -104,7 +104,7 @@ class Cmd:
self.lastcmd = line
i, n = 0, len(line)
while i < n and line[i] in self.identchars: i = i+1
- cmd, arg = line[:i], string.strip(line[i:])
+ cmd, arg = line[:i], line[i:].strip()
if cmd == '':
return self.default(line)
else: