Skip to content

Commit

Permalink
Merge pull request #1171 from tkjaer/tkjaer/decode-rbuffer-for-string…
Browse files Browse the repository at this point in the history
…-comparison
  • Loading branch information
thomas-mangin authored Jul 31, 2023
2 parents 63d4264 + 4620e9b commit 5dfb106
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/exabgp/application/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,11 @@ def cmdline(cmdarg):
# we read some data but it is not ending by a new line (ie: not a command completion)
if rbuffer[-1] != 10: # \n
continue
if AnswerStream.done.endswith(rbuffer[-len(AnswerStream.done) :]):
if AnswerStream.done.endswith(rbuffer.decode()[-len(AnswerStream.done) :]):
break
if AnswerStream.error.endswith(rbuffer[-len(AnswerStream.error) :]):
if AnswerStream.error.endswith(rbuffer.decode()[-len(AnswerStream.error) :]):
break
if AnswerStream.shutdown.endswith(rbuffer[-len(AnswerStream.shutdown) :]):
if AnswerStream.shutdown.endswith(rbuffer.decode()[-len(AnswerStream.shutdown) :]):
break

renamed = ['']
Expand Down

0 comments on commit 5dfb106

Please sign in to comment.