Skip to content

Commit 6db7341

Browse files
author
esr
committed
String method conversion.
git-svn-id: http://svn.python.org/projects/python/trunk@19340 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent e41faa9 commit 6db7341

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/cmd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def postloop(self):
9191
pass
9292

9393
def onecmd(self, line):
94-
line = string.strip(line)
94+
line = line.strip()
9595
if not line:
9696
return self.emptyline()
9797
elif line[0] == '?':
@@ -104,7 +104,7 @@ def onecmd(self, line):
104104
self.lastcmd = line
105105
i, n = 0, len(line)
106106
while i < n and line[i] in self.identchars: i = i+1
107-
cmd, arg = line[:i], string.strip(line[i:])
107+
cmd, arg = line[:i], line[i:].strip()
108108
if cmd == '':
109109
return self.default(line)
110110
else:

0 commit comments

Comments
 (0)