diff options
author | Michael Maltese <mike@mikemaltese.com> | 2011-07-11 11:39:35 -0700 |
---|---|---|
committer | Michael Maltese <mike@mikemaltese.com> | 2011-07-11 11:39:35 -0700 |
commit | c4a5417b37cebcf14861071d42b6276eeaf93936 (patch) | |
tree | 708b7a1bfefa300e0609bf048fa07f2031b4d9aa | |
parent | 4f0bfca5bc97bee62aa036d63a0905346e14fd38 (diff) | |
download | pycco-c4a5417b37cebcf14861071d42b6276eeaf93936.tar.gz |
Don't give decorators their own separators
-rw-r--r-- | pycco/main.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pycco/main.py b/pycco/main.py index 67efe41..e3e81ad 100644 --- a/pycco/main.py +++ b/pycco/main.py @@ -131,8 +131,9 @@ def parse(source, code): else: if code_text and any([line.lstrip().startswith(x) for x in ['class ', 'def ']]): - save(docs_text, code_text) - code_text = has_code = docs_text = '' + if not code_text.lstrip().startswith("@"): + save(docs_text, code_text) + code_text = has_code = docs_text = '' has_code = True code_text += line + '\n' |