mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
fix test_py3kwarns
The fact that this was failing and went unnoticed so long seems like a good argument for being able to enable and disble py3kwarnings through Python.
This commit is contained in:
parent
2ee623b710
commit
a6864e0d9f
38 changed files with 60 additions and 57 deletions
|
@ -74,7 +74,8 @@ 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")
|
||||
warnpy3k("in 3.x, rfc822 has been removed in favor of the email package",
|
||||
stacklevel=2)
|
||||
|
||||
__all__ = ["Message","AddressList","parsedate","parsedate_tz","mktime_tz"]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue