From fd2284632777a235ac663b7b9912246b30bc538b Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 26 Jul 2015 06:56:58 -0400 Subject: Get rid of napoleon style docstrings, they don't format nicely. --- coverage/phystokens.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'coverage/phystokens.py') 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)) -- cgit v1.2.1