Skip to content

Commit

Permalink
type check fix
Browse files Browse the repository at this point in the history
  • Loading branch information
theGowda committed Nov 26, 2024
1 parent 9276726 commit 6ecbcc6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions librouteros/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,14 +240,14 @@ async def __readSentence(self) -> typing.Tuple[str, typing.Tuple[str, ...]]:
:return: Reply word, tuple with read words.
"""
# sentence = tuple(word for word in iter(await self.readWord, ""))
sentence = []
temp_sentence = []
while True:
word = await self.readWord()
if word == "":
break
sentence.append(word)
temp_sentence.append(word)

sentence = tuple(sentence)
sentence = tuple(temp_sentence)
self.log("--->", *sentence)
reply_word, words = sentence[0], sentence[1:]
if reply_word == "!fatal":
Expand Down

0 comments on commit 6ecbcc6

Please sign in to comment.