[CMF-checkins]
SVN: CMF/branches/tseaver-pkg_resources/CMFDefault/utils.py
Normalize import / usage of StringIO.
Tres Seaver
tseaver at palladion.com
Thu Nov 10 17:12:39 EST 2005
Log message for revision 40043:
Normalize import / usage of StringIO.
Changed:
U CMF/branches/tseaver-pkg_resources/CMFDefault/utils.py
-=-
Modified: CMF/branches/tseaver-pkg_resources/CMFDefault/utils.py
===================================================================
--- CMF/branches/tseaver-pkg_resources/CMFDefault/utils.py 2005-11-10 22:12:05 UTC (rev 40042)
+++ CMF/branches/tseaver-pkg_resources/CMFDefault/utils.py 2005-11-10 22:12:38 UTC (rev 40043)
@@ -17,7 +17,7 @@
import os
import re
-import StringIO
+from StringIO import StringIO
import rfc822
from cgi import escape
from sgmllib import SGMLParser
@@ -89,7 +89,7 @@
Allow passing initial dictionary as headers.
"""
- buffer = StringIO.StringIO(body)
+ buffer = StringIO(body)
message = rfc822.Message(buffer)
headers = headers and headers.copy() or {}
More information about the CMF-checkins
mailing list