Explorar el Código

Cut a long line

Guillaume Ayoub hace 15 años
padre
commit
58c6fe399c
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      radicale/__init__.py

+ 3 - 2
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)