diff roundup/rfc2822.py @ 2005:fc52d57c6c3e

documentation cleanup
author Richard Jones <richard@users.sourceforge.net>
date Wed, 11 Feb 2004 23:55:10 +0000
parents ea1afeb64b45
children be047db3dd3d
line wrap: on
line diff
--- a/roundup/rfc2822.py	Wed Feb 11 21:34:31 2004 +0000
+++ b/roundup/rfc2822.py	Wed Feb 11 23:55:10 2004 +0000
@@ -1,3 +1,7 @@
+"""Some rfc822 functions taken from the new (python2.3) "email" module.
+"""
+__docformat__ = 'restructuredtext'
+
 import re
 from string import letters, digits
 from binascii import b2a_base64, a2b_base64
@@ -37,7 +41,8 @@
     return dec
 
 def unquote_match(match):
-    """Turn a match in the form =AB to the ASCII character with value 0xab
+    """Turn a match in the form ``=AB`` to the ASCII character with value
+    0xab.
 
     Taken from 'email' module
     """
@@ -45,7 +50,7 @@
     return chr(int(s[1:3], 16))
 
 def qp_decode(s):
-    """Decode a string encoded with RFC 2045 MIME header `Q' encoding.
+    """Decode a string encoded with RFC 2045 MIME header 'Q' encoding.
 
     This function does not parse a full MIME header value encoded with
     quoted-printable (like =?iso-8895-1?q?Hello_World?=) -- please use

Roundup Issue Tracker: http://roundup-tracker.org/