diff options
author | Jens Vagelpohl <jens@plyp.com> | 2023-01-04 13:19:17 +0100 |
---|---|---|
committer | Jens Vagelpohl <jens@plyp.com> | 2023-01-04 13:19:17 +0100 |
commit | ba0550c4645c3e73f32f7cd77bbe3cc528f76ad6 (patch) | |
tree | 33313c04e795b5eca25968484fcc13aacfbcd4b6 | |
parent | c8a635ea2e18ecb4597696eb060fb101654dac25 (diff) | |
download | zope-component-ba0550c4645c3e73f32f7cd77bbe3cc528f76ad6.tar.gz |
- use cheaper check as suggested by @teythoon
-rw-r--r-- | src/zope/component/interfaces.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zope/component/interfaces.py b/src/zope/component/interfaces.py index 0029a59..9819457 100644 --- a/src/zope/component/interfaces.py +++ b/src/zope/component/interfaces.py @@ -367,7 +367,7 @@ def _inherits_docs(func, iface): # doc can be None if the interpreter drops all docstrings when the # environment variable PYTHONOPTIMIZE is set 2. - if not doc: + if doc is None: return func # By adding the ..seealso:: we get a link from our overview page |