Skip to content

Commit 5c6aa63

Browse files
committed
Remove useless statement
1 parent 2f7899b commit 5c6aa63

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

bpython/autocomplete.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,6 @@ def locate(self, cursor_offset: int, line: str) -> Optional[LinePart]:
372372
return lineparts.current_string(cursor_offset, line)
373373

374374
def format(self, filename: str) -> str:
375-
filename.rstrip(os.sep).rsplit(os.sep)[-1]
376375
if os.sep in filename[:-1]:
377376
return filename[filename.rindex(os.sep, 0, -1) + 1 :]
378377
else:

0 commit comments

Comments
 (0)