soc/integration/doc: replace "== None" by "is None"

This commit is contained in:
Florent Kermarrec 2019-09-24 10:11:31 +02:00
parent 836d5b88c5
commit ed9bff2eb9
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ class ModuleDoc(DUID):
self._title = title self._title = title
self._format = format 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()") raise ValueError("Must specify `file` or `body` when constructing a ModuleDoc()")
if file is not None: if file is not None:
if not os.path.isabs(file): if not os.path.isabs(file):