summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAlex Henrie <alexhenrie24@gmail.com>2020-01-09 06:27:52 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2020-01-09 06:27:51 (GMT)
commit1a183faccbe5c32c367dbced721a25c1444dc5c1 (patch)
treeef886ae31a2c6ba55a43a4528ed5d0c50e9af4d5 /Modules
parent5cae042f686cc174e00093944dc118914c874b7c (diff)
downloadcpython-1a183faccbe5c32c367dbced721a25c1444dc5c1.zip
cpython-1a183faccbe5c32c367dbced721a25c1444dc5c1.tar.gz
cpython-1a183faccbe5c32c367dbced721a25c1444dc5c1.tar.bz2
bpo-39271: Remove dead assignment from pattern_subx (GH-17915)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_sre.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Modules/_sre.c b/Modules/_sre.c
index f4f9d01..6518e98 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;