From 6375163c6745315f94d37a99981c05bff444f720 Mon Sep 17 00:00:00 2001 From: Josh Kamdjou Date: Tue, 17 Dec 2019 14:20:36 -0500 Subject: [PATCH] fix bug where match variable is used prior to being defined --- Lib/_markupbase.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/_markupbase.py b/Lib/_markupbase.py index 2af5f1c23b6066..f74b6e59f2fe31 100644 --- a/Lib/_markupbase.py +++ b/Lib/_markupbase.py @@ -156,6 +156,7 @@ def parse_marked_section(self, i, report=1): # look for MS Office ]> ending match= _msmarkedsectionclose.search(rawdata, i+3) else: + match = None self.error('unknown status keyword %r in marked section' % rawdata[i+3:j]) if not match: return -1