From 5d50523dc076ca43e1abcbfc6d65807fb86010a8 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Tue, 18 Jun 2019 21:37:58 -0700 Subject: [PATCH] Fix name of '\0'. (GH-14222) '\0' is the NUL byte not NULL. (cherry picked from commit 7821b4c6d29933511d50bb42255e39790c6abf00) Co-authored-by: Benjamin Peterson --- Modules/_csv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_csv.c b/Modules/_csv.c index dd0b3c8107eb6e..6f7becfa886146 100644 --- a/Modules/_csv.c +++ b/Modules/_csv.c @@ -825,7 +825,7 @@ Reader_iternext(ReaderObj *self) if (c == '\0') { Py_DECREF(lineobj); PyErr_Format(_csvstate_global->error_obj, - "line contains NULL byte"); + "line contains NUL"); goto err; } if (parse_process_char(self, c) < 0) { pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy