From 58c6fe399c6fd8a94dd99f466dd9184f2b37da6f Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Wed, 11 May 2011 06:50:17 +0200 Subject: [PATCH] Cut a long line --- radicale/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/radicale/__init__.py b/radicale/__init__.py index 0358535d..4a9c7953 100644 --- a/radicale/__init__.py +++ b/radicale/__init__.py @@ -186,10 +186,11 @@ class Application(object): # Set content length if answer: - # decoding the answer for logging purposes on Python 3 + # Decode the answer for logging purposes on Python 3 log_answer = answer if not isinstance(log_answer, str): - log_answer = log_answer.decode(config.get("encoding", "request")) + log_answer = log_answer.decode( + config.get("encoding", "request")) log.LOGGER.debug("Response content:\n%s" % log_answer) headers["Content-Length"] = "%i" % len(answer)