diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-07-26 06:56:58 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-07-26 06:56:58 -0400 |
commit | fd2284632777a235ac663b7b9912246b30bc538b (patch) | |
tree | 7e0fa1d7f0a1a830bb49c275054c855399ddd6e1 /coverage/phystokens.py | |
parent | 498f7c997393752fd626af2c4353d5c9d7a85806 (diff) | |
download | python-coveragepy-fd2284632777a235ac663b7b9912246b30bc538b.tar.gz |
Get rid of napoleon style docstrings, they don't format nicely.
Diffstat (limited to 'coverage/phystokens.py')
-rw-r--r-- | coverage/phystokens.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/coverage/phystokens.py b/coverage/phystokens.py index 7a033ae..92da8d3 100644 --- a/coverage/phystokens.py +++ b/coverage/phystokens.py @@ -158,11 +158,9 @@ COOKIE_RE = re.compile(r"^\s*#.*coding[:=]\s*([-\w.]+)", flags=re.MULTILINE) def _source_encoding_py2(source): """Determine the encoding for `source`, according to PEP 263. - Arguments: - source (byte string): the text of the program. + `source` is a byte string, the text of the program. - Returns: - string: the name of the encoding. + Returns a string, the name of the encoding. """ assert isinstance(source, bytes) @@ -255,11 +253,9 @@ def _source_encoding_py2(source): def _source_encoding_py3(source): """Determine the encoding for `source`, according to PEP 263. - Arguments: - source (byte string): the text of the program. + `source` is a byte string: the text of the program. - Returns: - string: the name of the encoding. + Returns a string, the name of the encoding. """ readline = iternext(source.splitlines(True)) |