]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39271: Remove dead assignment from pattern_subx (GH-17915)
authorAlex Henrie <alexhenrie24@gmail.com>
Thu, 9 Jan 2020 06:27:52 +0000 (06:27 +0000)
committerSerhiy Storchaka <storchaka@gmail.com>
Thu, 9 Jan 2020 06:27:51 +0000 (08:27 +0200)
Modules/_sre.c

index f4f9d01dfccfdd0c23c5c51386fa68edd88c7afe..6518e98f04e409920bd3957e271393bf1f933bc7 100644 (file)
@@ -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;