From cefd9b1563f5b9eecdc3f0316f7531a9e1352715 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 9 Jul 2021 08:34:31 +0530 Subject: [PATCH] pep8 --- src/calibre/utils/formatter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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