summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/cmd.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/cmd.py b/Lib/cmd.py
index 508c4de..35b9e0b 100644
--- a/Lib/cmd.py
+++ b/Lib/cmd.py
@@ -91,11 +91,9 @@ class Cmd:
if hasattr(self, 'do_shell'):
line = 'shell'
else:
- self.default(line)
- return
+ return self.default(line)
elif not line:
- self.emptyline()
- return
+ return self.emptyline()
self.lastcmd = line
i, n = 0, len(line)
while i < n and line[i] in self.identchars: i = i+1