summaryrefslogtreecommitdiff
path: root/sphinx/pycode/parser.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2019-08-15 20:30:22 -0700
committerJon Dufresne <jon.dufresne@gmail.com>2019-08-15 20:30:22 -0700
commitad63eb4ac89e882c1b327e72fd19d896d30094b0 (patch)
tree76b4d00a130bcdc06934dc2fbbdbf9dd5733ce65 /sphinx/pycode/parser.py
parent47cd262b3e50ed650a82f272ba128a1f872cda4d (diff)
downloadsphinx-git-ad63eb4ac89e882c1b327e72fd19d896d30094b0.tar.gz
Fix inaccurate docstring for TokenProcessor.fetch_token()
Diffstat (limited to 'sphinx/pycode/parser.py')
-rw-r--r--sphinx/pycode/parser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/pycode/parser.py b/sphinx/pycode/parser.py
index 534f2310a..cbae86c9e 100644
--- a/sphinx/pycode/parser.py
+++ b/sphinx/pycode/parser.py
@@ -140,7 +140,7 @@ class TokenProcessor:
def fetch_token(self) -> Token:
"""Fetch a next token from source code.
- Returns ``False`` if sequence finished.
+ Returns ``None`` if sequence finished.
"""
try:
self.previous = self.current