INN commit: branches/2.4 (2 files)

INN Commit Russ_Allbery at isc.org
Tue Dec 23 12:31:01 UTC 2008


    Date: Tuesday, December 23, 2008 @ 04:31:01
  Author: iulius
Revision: 8253

Fix a wrong syntax to have access to a dictionary key.

Modified:
  branches/2.4/doc/pod/hook-python.pod
  branches/2.4/samples/filter_innd.py

-------------------------+
 doc/pod/hook-python.pod |    4 ++--
 samples/filter_innd.py  |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

Modified: doc/pod/hook-python.pod
===================================================================
--- doc/pod/hook-python.pod	2008-12-23 12:24:52 UTC (rev 8252)
+++ doc/pod/hook-python.pod	2008-12-23 12:31:01 UTC (rev 8253)
@@ -95,8 +95,8 @@
 same named article headers, except for the special C<__BODY__> and C<__LINES__>
 items.  Items not present in the article will contain C<None>.
 
-C<art('__BODY__')> is a buffer object containing the article's entire body, and
-C<art('__LINES__')> is an int holding B<innd>'s reckoning of the number of lines
+C<art['__BODY__']> is a buffer object containing the article's entire body, and
+C<art['__LINES__']> is an int holding B<innd>'s reckoning of the number of lines
 in the article.  All the other elements will be buffers with the contents
 of the same-named article headers.
 

Modified: samples/filter_innd.py
===================================================================
--- samples/filter_innd.py	2008-12-23 12:24:52 UTC (rev 8252)
+++ samples/filter_innd.py	2008-12-23 12:31:01 UTC (rev 8253)
@@ -174,8 +174,8 @@
             X-PGP-Key, X-PGP-Sig, X-Poster-Trace, X-Postfilter, X-Proxy-User,
             X-Submissions-To, X-Trace, X-Usenet-Provider, X-User-ID, Xref.
 
-        The body is the buffer in art['__BODY__'] and the INN-reckoned
-        line count is held as an integer in art['__LINES__'].  (The
+        The body is the buffer in art[__BODY__] and the INN-reckoned
+        line count is held as an integer in art[__LINES__].  (The
         Lines: header is often generated by the poster, and large
         differences can be a good indication of a corrupt article.)
 




More information about the inn-committers mailing list