diff options
author | Avleen Vig <avleen@gmail.com> | 2012-05-25 19:40:50 -0500 |
---|---|---|
committer | Avleen Vig <avleen@gmail.com> | 2012-05-25 19:40:50 -0500 |
commit | 048de0102ff971a14f4b0bf867482d42ed920de2 (patch) | |
tree | c708e43405495ed8c78795bf301e75e469e0ab76 | |
parent | f3f733bfd7dad50555c4d91f1564d0a82379d26c (diff) | |
download | pycco-048de0102ff971a14f4b0bf867482d42ed920de2.tar.gz |
docstrings can occur at the end of lines, as well as the start - the PEP doesn't suggest that this shouldn't be done, and it's completely valid syntax which many people use. This patch allows the closing docstring triple-quote to happen at the end of a line.'
-rw-r--r-- | pycco/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pycco/main.py b/pycco/main.py index 105a7cb..487ec5e 100644 --- a/pycco/main.py +++ b/pycco/main.py @@ -91,7 +91,7 @@ def parse(source, code): # Only go into multiline comments section when one of the delimiters is # found to be at the start of a line - if all(multi_line_delimiters) and any([line.lstrip().startswith(delim) for delim in multi_line_delimiters]): + if all(multi_line_delimiters) and any([line.lstrip().startswith(delim) or line.rstrip().endswith(delim) for delim in multi_line_delimiters]): if not multi_line: multi_line = True |