From 282a759174df11ea643d14959f1870875c0ce06f Mon Sep 17 00:00:00 2001 From: Unrud Date: Mon, 11 Sep 2017 20:05:54 +0200 Subject: [PATCH] Fix compatibility with Python < 3.5 --- radicale/storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicale/storage.py b/radicale/storage.py index 01f7874..ab6ec65 100644 --- a/radicale/storage.py +++ b/radicale/storage.py @@ -311,7 +311,7 @@ def path_to_filesystem(root, *paths): def left_encode_int(v): length = int(log(v, 256)) + 1 if v != 0 else 1 - return b"%c%s" % (length, v.to_bytes(length, 'little')) + return bytes((length,)) + v.to_bytes(length, 'little') class UnsafePathError(ValueError):