Commit 4ec09987 authored by Tres Seaver's avatar Tres Seaver

Move deprecation-emitting import out of module scope in untestsed module.

parent bd4d5777
...@@ -15,7 +15,6 @@ __version__='$Revision: 1.12 $'[11:-2] ...@@ -15,7 +15,6 @@ __version__='$Revision: 1.12 $'[11:-2]
from DocumentTemplate.DT_Util import * from DocumentTemplate.DT_Util import *
from DocumentTemplate.DT_String import String from DocumentTemplate.DT_String import String
from MimeWriter import MimeWriter
from cStringIO import StringIO from cStringIO import StringIO
import mimetools import mimetools
...@@ -127,6 +126,7 @@ class MIMETag: ...@@ -127,6 +126,7 @@ class MIMETag:
def render(self, md): def render(self, md):
from MimeWriter import MimeWriter # deprecated since Python 2.3!
contents=[] contents=[]
IO = StringIO() IO = StringIO()
IO.write("Mime-Version: 1.0\n") IO.write("Mime-Version: 1.0\n")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment