summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Henrie <alexhenrie24@gmail.com>2020-01-09 06:27:52 +0000
committerSerhiy Storchaka <storchaka@gmail.com>2020-01-09 08:27:51 +0200
commit1a183faccbe5c32c367dbced721a25c1444dc5c1 (patch)
treeef886ae31a2c6ba55a43a4528ed5d0c50e9af4d5
parent5cae042f686cc174e00093944dc118914c874b7c (diff)
downloadcpython-git-1a183faccbe5c32c367dbced721a25c1444dc5c1.tar.gz
bpo-39271: Remove dead assignment from pattern_subx (GH-17915)
-rw-r--r--Modules/_sre.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Modules/_sre.c b/Modules/_sre.c
index f4f9d01dfc..6518e98f04 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;