Skip to content

Commit 911b916

Browse files
committed
make fix python 2.7 compatible
1 parent c061551 commit 911b916

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

llsd/base.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,8 +427,10 @@ def _reset(self, something):
427427
# This catches MagicMock and other non-stream objects that might
428428
# have read/seek attributes but aren't actual IO streams
429429
raise LLSDParseError(
430-
f"Cannot parse LLSD from {type(something).__name__}. "
431-
"Expected bytes or a file-like object (io.IOBase subclass)."
430+
"Cannot parse LLSD from {0}. "
431+
"Expected bytes or a file-like object (io.IOBase subclass).".format(
432+
type(something).__name__
433+
)
432434
)
433435

434436
def starts_with(self, pattern):

0 commit comments

Comments
 (0)