[issue39271] Dead assignment in pattern_subx

2020-01-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Alex. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue39271] Dead assignment in pattern_subx

2020-01-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1a183faccbe5c32c367dbced721a25c1444dc5c1 by Serhiy Storchaka (Alex Henrie) in branch 'master': bpo-39271: Remove dead assignment from pattern_subx (GH-17915) https://github.com/python/cpython/commit/1a183faccbe5c32c367dbced721a25c1444dc5c1 -

[issue39271] Dead assignment in pattern_subx

2020-01-08 Thread Alex Henrie
Change by Alex Henrie : -- keywords: +patch pull_requests: +17327 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17915 ___ Python tracker ___

[issue39271] Dead assignment in pattern_subx

2020-01-08 Thread Alex Henrie
New submission from Alex Henrie : The function pattern_subx currently sets the variable b to charsize, but that variable is reset to STATE_OFFSET(&state, state.start) before it is ever used. -- components: Regular Expressions messages: 359653 nosy: alex.henrie, ezio.melotti, mrabarnett