mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Issue #7092: Fix the DeprecationWarnings emitted by the standard library
when using the -3 flag. Patch by Florent Xicluna.
This commit is contained in:
parent
b9c3ed4f82
commit
b9d4963a98
18 changed files with 99 additions and 88 deletions
|
|
@ -3,7 +3,7 @@
|
|||
import sys
|
||||
if sys.py3kwarning:
|
||||
import warnings
|
||||
warnings.warnpy3k("in 3.x, dbhash has been removed", DeprecationWarning, 2)
|
||||
warnings.warnpy3k("in 3.x, the dbhash module has been removed", DeprecationWarning, 2)
|
||||
try:
|
||||
import bsddb
|
||||
except ImportError:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue