summaryrefslogtreecommitdiff
path: root/coverage/phystokens.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-07-26 06:56:58 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-07-26 06:56:58 -0400
commit882171549d866c326fc54c0d6b0744c61ecfc539 (patch)
treec1a98cda25ca3d36f612fa1e2e1da96a1e21b419 /coverage/phystokens.py
parent00b076ba91adf36d568f991913579dd566c64924 (diff)
downloadpython-coveragepy-git-882171549d866c326fc54c0d6b0744c61ecfc539.tar.gz
Get rid of napoleon style docstrings, they don't format nicely.
Diffstat (limited to 'coverage/phystokens.py')
-rw-r--r--coverage/phystokens.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/coverage/phystokens.py b/coverage/phystokens.py
index 7a033aec..92da8d32 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))