From ed9bff2eb9d6c59f0b25d7de99512ab8c3377e95 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 24 Sep 2019 10:11:31 +0200 Subject: [PATCH] soc/integration/doc: replace "== None" by "is None" --- litex/soc/integration/doc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/integration/doc.py b/litex/soc/integration/doc.py index 6477cc1b..6b360dc5 100644 --- a/litex/soc/integration/doc.py +++ b/litex/soc/integration/doc.py @@ -64,7 +64,7 @@ class ModuleDoc(DUID): self._title = title self._format = format - if file == None and body == None and self.__doc__ is None: + if file is None and body is None and self.__doc__ is None: raise ValueError("Must specify `file` or `body` when constructing a ModuleDoc()") if file is not None: if not os.path.isabs(file): -- 2.30.2