commit | 26305a03e3d501f9338af3f1373f8ec7da88838f | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Thu Jun 12 22:33:06 2008 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Thu Jun 12 22:33:06 2008 +0000 |
tree | c69a1822ec0f2412e726257a5fec4ab310c0e6b2 | |
parent | 6fd3321d6c2d374f4d46534e630b822e7da4310e [diff] [blame] |
add py3k warnings to rfc822
diff --git a/Lib/rfc822.py b/Lib/rfc822.py index 14cc729..4382a51 100644 --- a/Lib/rfc822.py +++ b/Lib/rfc822.py
@@ -73,6 +73,9 @@ import time +from warnings import warnpy3k +warnpy3k("in 3.x, rfc822 has been removed in favor of the email package") + __all__ = ["Message","AddressList","parsedate","parsedate_tz","mktime_tz"] _blanklines = ('\r\n', '\n') # Optimization for islast()