Skip to content

Commit 5ae7251

Browse files
author
Todd Leonhardt
committed
Minor tweaks
1 parent aa7d284 commit 5ae7251

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd2.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ def parseline(self, line):
952952

953953
i, n = 0, len(line)
954954
while i < n and line[i] in self.identchars:
955-
i = i+1
955+
i += 1
956956
command, arg = line[:i], line[i:].strip()
957957
return command, arg, line
958958

@@ -1381,7 +1381,7 @@ def path_complete(self, text, line, begidx, endidx, dir_exe_only=False):
13811381
add_trailing_sep_if_dir = True
13821382

13831383
add_sep_after_tilde = False
1384-
# If not path and no search text has been entered, then search in the CWD for *
1384+
# If no path and no search text has been entered, then search in the CWD for *
13851385
if not text and line[begidx - 1] == ' ' and (begidx >= len(line) or line[begidx] == ' '):
13861386
search_str = os.path.join(os.getcwd(), '*')
13871387
else:

0 commit comments

Comments
 (0)