summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Maltese <mike@mikemaltese.com>2011-07-11 12:27:12 -0700
committerMichael Maltese <mike@mikemaltese.com>2011-07-11 12:27:45 -0700
commit519825ecefcb9a32038770ca13393a2a039e901f (patch)
treefb1223f1c079ab639df931df8d6035de77a37c07
parentc4a5417b37cebcf14861071d42b6276eeaf93936 (diff)
downloadpycco-519825ecefcb9a32038770ca13393a2a039e901f.tar.gz
Allow sections with one empty section and one non-empty section (fixes commit bcb8f2c5f5a5adaee51e)
-rw-r--r--pycco/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pycco/main.py b/pycco/main.py
index e3e81ad..0a06b86 100644
--- a/pycco/main.py
+++ b/pycco/main.py
@@ -67,7 +67,7 @@ def parse(source, code):
def save(docs, code):
- if docs and code:
+ if docs or code:
sections.append({
"docs_text": docs,
"code_text": code