From: Florent Kermarrec Date: Tue, 24 Sep 2019 08:11:31 +0000 (+0200) Subject: soc/integration/doc: replace "== None" by "is None" X-Git-Tag: 24jan2021_ls180~989 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ed9bff2eb9d6c59f0b25d7de99512ab8c3377e95;p=litex.git soc/integration/doc: replace "== None" by "is None" --- 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):