diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-11-13 19:00:51 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-11-14 07:44:57 -0500 |
commit | 342e7da2941ae5291f1a94b6ad66ce489f6985fe (patch) | |
tree | 47dc5f4db2d314c4e0c8051e705222ae76899431 /coverage/parser.py | |
parent | b8eeb82bcc7350aade99844e8730e69120e9bed0 (diff) | |
download | python-coveragepy-git-342e7da2941ae5291f1a94b6ad66ce489f6985fe.tar.gz |
docs: document the exceptions
... and make some of them private.
Diffstat (limited to 'coverage/parser.py')
-rw-r--r-- | coverage/parser.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/parser.py b/coverage/parser.py index d17d7c9b..665360fa 100644 --- a/coverage/parser.py +++ b/coverage/parser.py @@ -13,7 +13,7 @@ import tokenize from coverage import env from coverage.bytecode import code_objects from coverage.debug import short_stack -from coverage.exceptions import NoSource, NotPython, StopEverything +from coverage.exceptions import NoSource, NotPython, _StopEverything from coverage.misc import contract, join_regex, new_contract, nice_pair, one_of from coverage.phystokens import compile_unicode, generate_tokens, neuter_encoding_declaration @@ -356,7 +356,7 @@ class ByteParser: # attributes on code objects that we need to do the analysis. for attr in ['co_lnotab', 'co_firstlineno']: if not hasattr(self.code, attr): - raise StopEverything( # pragma: only jython + raise _StopEverything( # pragma: only jython "This implementation of Python doesn't support code analysis.\n" + "Run coverage.py under another Python for this command." ) |