diff --git a/src/calibre/utils/formatter.py b/src/calibre/utils/formatter.py index efed564a73..a841c02010 100644 --- a/src/calibre/utils/formatter.py +++ b/src/calibre/utils/formatter.py @@ -1390,7 +1390,7 @@ class TemplateFormatter(string.Formatter): @property def gpm_parser(self): - if self._template_parser == None: + if self._template_parser is None: self._template_parser = _Parser() return self._template_parser