summaryrefslogtreecommitdiff
path: root/Lib/rfc822.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/rfc822.py')
-rw-r--r--Lib/rfc822.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/rfc822.py b/Lib/rfc822.py
index 14cc7297f1..4382a51b70 100644
--- a/Lib/rfc822.py
+++ b/Lib/rfc822.py
@@ -73,6 +73,9 @@ There are also some utility functions here.
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()