Skip to content

Commit 20e4423

Browse files
String method conversion.
1 parent 5ed1dac commit 20e4423

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)