From 5a230ee5c93eaa970c33eb005988b5a645f7aa50 Mon Sep 17 00:00:00 2001 From: amak <64077+amak@users.noreply.github.com> Date: Mon, 23 Oct 2023 20:28:26 +0100 Subject: [PATCH] PEP 3333: Fix a TypeError in the example CGI Driver code (#3497) --- peps/pep-3333.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peps/pep-3333.rst b/peps/pep-3333.rst index 4ec70d84f..1803b28b9 100644 --- a/peps/pep-3333.rst +++ b/peps/pep-3333.rst @@ -348,7 +348,7 @@ server. if data: # don't send headers until body appears write(data) if not headers_sent: - write('') # send headers now if body was empty + write(b'') # send headers now if body was empty finally: if hasattr(result, 'close'): result.close()