Skip to content

Commit c07a6a7

Browse files
committed
renamed next_row function
1 parent 26c8761 commit c07a6a7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

textbeat/player.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ async def run(self):
287287

288288
try:
289289
self.line = '.'
290-
loop_result = await self.try_stop_on_index_error(prompt_session)
290+
loop_result = await self.next_row(prompt_session)
291291
if loop_result == LoopResult.CONTINUE: continue
292292
elif loop_result == LoopResult.BREAK: break
293293

@@ -1874,7 +1874,7 @@ async def run(self):
18741874

18751875
self.row += 1
18761876

1877-
async def try_stop_on_index_error(self, prompt_session:PromptSession) -> LoopResult:
1877+
async def next_row(self, prompt_session:PromptSession) -> LoopResult:
18781878
try:
18791879
self.line = self.buf[self.row]
18801880
if self.row == self.startrow:
@@ -1948,4 +1948,4 @@ async def mk_prompt(self, prompt_session:PromptSession):
19481948
bufline = list(filter(None, bufline.split(' ')))
19491949
bufline = list(map(lambda b: b.replace(';',' '), bufline))
19501950

1951-
return bufline
1951+
return bufline

0 commit comments

Comments
 (0)