[Python-checkins] bpo-39271: Remove dead assignment from pattern_subx (GH-17915)

Serhiy Storchaka webhook-mailer at python.org
Thu Jan 9 01:27:59 EST 2020


https://github.com/python/cpython/commit/1a183faccbe5c32c367dbced721a25c1444dc5c1
commit: 1a183faccbe5c32c367dbced721a25c1444dc5c1
branch: master
author: Alex Henrie <alexhenrie24 at gmail.com>
committer: Serhiy Storchaka <storchaka at gmail.com>
date: 2020-01-09T08:27:51+02:00
summary:

bpo-39271: Remove dead assignment from pattern_subx (GH-17915)

files:
M Modules/_sre.c

diff --git a/Modules/_sre.c b/Modules/_sre.c
index f4f9d01dfccfd..6518e98f04e40 100644
--- a/Modules/_sre.c
+++ b/Modules/_sre.c
@@ -1002,7 +1002,6 @@ pattern_subx(PatternObject* self, PyObject* ptemplate, PyObject* string,
         int literal;
         view.buf = NULL;
         ptr = getstring(ptemplate, &n, &isbytes, &charsize, &view);
-        b = charsize;
         if (ptr) {
             if (charsize == 1)
                 literal = memchr(ptr, '\\', n) == NULL;



More information about the Python-checkins mailing list