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

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


http://hg.python.org/cpython/rev/c574951deadd
changeset:   86887:c574951deadd
branch:      3.3
parent:      86885:dfdf47a9aad4
user:        R David Murray <rdmurray at bitdance.com>
date:        Sun Nov 03 12:23:23 2013 -0500
summary:
  #19485: clarify get_param example.

Patch by Vajrasky Kok.

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
@@ -636,7 +636,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