[Python-checkins] cpython (merge 3.3 -> default): Merge #19485: clarify get_param example.

r.david.murray python-checkins at python.org
Sun Nov 3 18:33:44 CET 2013


http://hg.python.org/cpython/rev/e3180c58a78c
changeset:   86888:e3180c58a78c
parent:      86886:e7be7aceab77
parent:      86887:c574951deadd
user:        R David Murray <rdmurray at bitdance.com>
date:        Sun Nov 03 12:23:51 2013 -0500
summary:
  Merge #19485: clarify get_param example.

files:
  Lib/email/message.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/email/message.py b/Lib/email/message.py
--- a/Lib/email/message.py
+++ b/Lib/email/message.py
@@ -662,7 +662,7 @@
         If your application doesn't care whether the parameter was RFC 2231
         encoded, it can turn the return value into a string as follows:
 
-            param = msg.get_param('foo')
+            rawparam = msg.get_param('foo')
             param = email.utils.collapse_rfc2231_value(rawparam)
 
         """

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list