This commit is contained in:
Kovid Goyal 2021-07-09 08:34:31 +05:30
parent 99616ba400
commit cefd9b1563
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1390,7 +1390,7 @@ class TemplateFormatter(string.Formatter):
@property @property
def gpm_parser(self): def gpm_parser(self):
if self._template_parser == None: if self._template_parser is None:
self._template_parser = _Parser() self._template_parser = _Parser()
return self._template_parser return self._template_parser