mirror of
https://github.com/python/cpython.git
synced 2025-10-22 22:53:06 +00:00
bpo-39271: Remove dead assignment from pattern_subx (GH-17915)
This commit is contained in:
parent
5cae042f68
commit
1a183faccb
1 changed files with 0 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue