Skip to content

Commit 2fe8fc4

Browse files
fix assert syntax
1 parent 5ce8000 commit 2fe8fc4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

bpython/curtsiesfrontend/repl.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1374,17 +1374,17 @@ def move_screen_up(current_line_start_row):
13741374
(len(self.current_cursor_line_without_suggestion) +
13751375
self.cursor_offset),
13761376
width)
1377-
assert (cursor_column >= 0,
1378-
(cursor_column, len(self.current_cursor_line),
1379-
len(self.current_line), self.cursor_offset))
1377+
assert cursor_column >= 0, (
1378+
cursor_column, len(self.current_cursor_line),
1379+
len(self.current_line), self.cursor_offset)
13801380
else:
13811381
cursor_row, cursor_column = divmod(
13821382
(len(self.current_cursor_line_without_suggestion) -
13831383
len(self.current_line) + self.cursor_offset),
13841384
width)
1385-
assert (cursor_column >= 0,
1386-
(cursor_column, len(self.current_cursor_line),
1387-
len(self.current_line), self.cursor_offset))
1385+
assert cursor_column >= 0, (
1386+
cursor_column, len(self.current_cursor_line),
1387+
len(self.current_line), self.cursor_offset)
13881388
cursor_row += current_line_start_row
13891389

13901390
if self.list_win_visible and not self.coderunner.running:

0 commit comments

Comments
 (0)