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

This commit is contained in:
Alex Henrie 2020-01-09 06:27:52 +00:00 committed by Serhiy Storchaka
parent 5cae042f68
commit 1a183faccb
1 changed files with 0 additions and 1 deletions

View File

@ -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;