changeset 5990:aee4ff651134

rss_rc action: fix python 2.7.5 compatibility
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 08 Jun 2013 02:25:24 +0200
parents 4790615ddfb6
children e0dcce5a9abf
files MoinMoin/action/rss_rc.py docs/CHANGES
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/rss_rc.py	Wed Jun 05 00:37:14 2013 +0200
+++ b/MoinMoin/action/rss_rc.py	Sat Jun 08 02:25:24 2013 +0200
@@ -159,7 +159,7 @@
 
         # start SAX stream
         handler.startDocument()
-        handler._out.write(unicode(
+        handler._write(
             '<!--\n'
             '    Add an "items=nnn" URL parameter to get more than the \n'
             '    default %(def_max_items)d items. You cannot get more than \n'
@@ -188,7 +188,7 @@
             '    diffs=%(diffs)i, ddiffs=%(ddiffs)i, lines=%(max_lines)i, \n'
             '    show_att=%(show_att)i\n'
             '-->\n' % locals()
-            ).encode(config.charset))
+            )
 
         # emit channel description
         handler.startNode('channel', {
--- a/docs/CHANGES	Wed Jun 05 00:37:14 2013 +0200
+++ b/docs/CHANGES	Sat Jun 08 02:25:24 2013 +0200
@@ -52,6 +52,7 @@
     url_prefix_action gets used for the (print and raw) action URLs
   * fixed wrong detection of UI language from accept-language header for not
     logged-in users if the language identifier there was (partially) uppercase.
+  * fix Python 2.7.5 compatibility issue with rss_rc action using handler._out
 
 
 Version 1.9.7: