diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-02-09 04:52:11 (GMT) |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-02-09 04:52:11 (GMT) |
commit | 20e4423adef209d2260fd952533dc2360e2d257e (patch) | |
tree | fd306ebca5e06f11886b0772b049226b6ee3f864 | |
parent | 5ed1dac4c0d9329accde4a90e5cc34c3085570d7 (diff) | |
download | cpython-20e4423adef209d2260fd952533dc2360e2d257e.zip cpython-20e4423adef209d2260fd952533dc2360e2d257e.tar.gz cpython-20e4423adef209d2260fd952533dc2360e2d257e.tar.bz2 |
String method conversion.
-rw-r--r-- | Lib/cmd.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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: |