mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
[3.9] bpo-34480: fix bug where match variable is used prior to being defined (GH-17643) (GH-32256)
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
This commit is contained in:
parent
1699a5ee13
commit
518b238967
3 changed files with 26 additions and 0 deletions
|
|
@ -157,6 +157,7 @@ def parse_marked_section(self, i, report=1):
|
|||
match= _msmarkedsectionclose.search(rawdata, i+3)
|
||||
else:
|
||||
self.error('unknown status keyword %r in marked section' % rawdata[i+3:j])
|
||||
match = None
|
||||
if not match:
|
||||
return -1
|
||||
if report:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue