# HG changeset patch # User Paul Boddie # Date 1389304491 -3600 # Node ID 92888787b58cf9d3f8152a01ff467cb7c86787b2 # Parent 4385fb197187dce79592ac0d60b69cf04ad204c2 Used Parser.parsestr instead of explicitly using StringIO and Parser.parse. diff -r 4385fb197187 -r 92888787b58c MoinShare.py --- a/MoinShare.py Wed Nov 13 17:51:21 2013 +0100 +++ b/MoinShare.py Thu Jan 09 22:54:51 2014 +0100 @@ -2,7 +2,7 @@ """ MoinMoin - MoinShare library - @copyright: 2011, 2012, 2013 by Paul Boddie + @copyright: 2011, 2012, 2013, 2014 by Paul Boddie @copyright: 2003-2006 Edgewall Software @copyright: 2006 MoinMoin:AlexanderSchremmer @license: GNU GPL (v2 or later), see COPYING.txt for details. @@ -231,7 +231,7 @@ "Return an update for the given 'message_text' and 'message_number'." update = Update() - message = Parser().parse(StringIO(message_text)) + message = Parser().parsestr(message_text) # Produce a fragment identifier. @@ -298,7 +298,7 @@ if is_encrypted(part): text = gpg.decryptMessage(part) - part = Parser().parse(StringIO(text)) + part = Parser().parsestr(text) # Extract any signature details.