Commit ff4c3b43 authored by Brett Cannon's avatar Brett Cannon

Blocked revisions 65665 via svnmerge

........
  r65665 | brett.cannon | 2008-08-13 22:00:03 -0700 (Wed, 13 Aug 2008) | 11 lines

  Silence the DeprecationWarning of rfc822 triggered by its importation in
  mimetools.

  This has an unfortunate side-effect of potentially not letting any warning
  about rfc822's deprecation be seen by user-visible code if rfc822 is not
  imported before mimetools. This is because modules are cached in sys.modules
  and thus do not have their deprecation triggered more than once. But this
  silencing would have happened by other code that silences the use of mimetools
  or rfc822 anyway in the stdlib or user code, and thus seems justified to be
  done here.
........
parent 73c8948f
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