* lib/mudpy/misc.py: When comparing against data already in the output
queue, use byte type for compatibility with Py3K.
# and the ansi escape to return to normal text
if not just_prompt and prepend_padding:
if not self.output_queue \
# and the ansi escape to return to normal text
if not just_prompt and prepend_padding:
if not self.output_queue \
- or not self.output_queue[-1].endswith("\r\n"):
+ or not self.output_queue[-1].endswith(b"\r\n"):
output = "$(eol)" + output
elif not self.output_queue[-1].endswith(
output = "$(eol)" + output
elif not self.output_queue[-1].endswith(
) and not self.output_queue[-1].endswith(
) and not self.output_queue[-1].endswith(
):
output = "$(eol)" + output
output += eol + chr(27) + "[0m"
):
output = "$(eol)" + output
output += eol + chr(27) + "[0m"