From 804aeb8c9567a82dabe43fd994dc74621a2ce523 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Tue, 11 Dec 2018 10:04:44 +0100 Subject: [PATCH] lint: ErrorWrapper.write: remove assertion With webpy non-bytes might arrive here, via: print(traceback.format_exc(), file=web.debug) out = ctx.environ['wsgi.errors'] out.write(x) I think this is legitimate, and paste should not cause more trouble (i.e. a new exception) in this case. --- paste/lint.py | 1 - 1 file changed, 1 deletion(-) diff --git a/paste/lint.py b/paste/lint.py index d7816864..973132ad 100644 --- a/paste/lint.py +++ b/paste/lint.py @@ -217,7 +217,6 @@ def __init__(self, wsgi_errors): self.errors = wsgi_errors def write(self, s): - assert isinstance(s, bytes) self.errors.write(s) def flush(self):