bpo-39271: Remove dead assignment from pattern_subx (GH-17915)
This commit is contained in:
parent
5cae042f68
commit
1a183faccb
|
@ -1002,7 +1002,6 @@ pattern_subx(PatternObject* self, PyObject* ptemplate, PyObject* string,
|
||||||
int literal;
|
int literal;
|
||||||
view.buf = NULL;
|
view.buf = NULL;
|
||||||
ptr = getstring(ptemplate, &n, &isbytes, &charsize, &view);
|
ptr = getstring(ptemplate, &n, &isbytes, &charsize, &view);
|
||||||
b = charsize;
|
|
||||||
if (ptr) {
|
if (ptr) {
|
||||||
if (charsize == 1)
|
if (charsize == 1)
|
||||||
literal = memchr(ptr, '\\', n) == NULL;
|
literal = memchr(ptr, '\\', n) == NULL;
|
||||||
|
|
Loading…
Reference in New Issue