[pygobject] Doc Extractor: Correct the logic of the --no-since option.
- From: José Alburquerque <jaalburqu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] Doc Extractor: Correct the logic of the --no-since option.
- Date: Thu, 12 May 2011 15:54:53 +0000 (UTC)
commit c1389dadbf35afee3f28d90ef637efd8c1f071a5
Author: José Alburquerque <jaalburqu svn gnome org>
Date: Thu May 12 11:53:40 2011 -0400
Doc Extractor: Correct the logic of the --no-since option.
* codegen/docextract.py (process_final_sections): If the --no-since
option has been specified and a "Since:" is encountered during the
processing of the final sections, simply don't append the "Since: ..."
instead of reading the next line. This preserves the logical flow of
processing.
codegen/docextract.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/codegen/docextract.py b/codegen/docextract.py
index 4ab5f5f..13beeff 100644
--- a/codegen/docextract.py
+++ b/codegen/docextract.py
@@ -351,9 +351,9 @@ def process_final_sections(fp, line, cur_doc):
else:
# For all others ('Since:' and 'Deprecated:') just append
# the line to the description for now.
- # But if the --no-since option is specified, skip the line.
+ # But if --no-since is specified, don't append it.
if no_since and pattern == since_pattern:
- line = fp.readline()
+ pass
else:
cur_doc.append_to_description(line)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]