mirror of
https://github.com/python/cpython
synced 2024-09-05 08:17:45 +00:00
gh-91217: deprecate msilib (GH-91515)
This commit is contained in:
parent
861974b514
commit
1b6cd872f4
|
@ -857,6 +857,7 @@ Deprecated
|
|||
* :mod:`chunk`
|
||||
* :mod:`crypt`
|
||||
* :mod:`imghdr`
|
||||
* :mod:`msilib`
|
||||
|
||||
(Contributed by Brett Cannon in :issue:`47061`.)
|
||||
|
||||
|
|
|
@ -6,6 +6,9 @@
|
|||
import re
|
||||
import string
|
||||
import sys
|
||||
import warnings
|
||||
|
||||
warnings._deprecated(__name__, remove=(3, 13))
|
||||
|
||||
AMD64 = "AMD64" in sys.version
|
||||
# Keep msilib.Win64 around to preserve backwards compatibility.
|
||||
|
|
|
@ -3,7 +3,10 @@
|
|||
import unittest
|
||||
from test.support.import_helper import import_module
|
||||
from test.support.os_helper import TESTFN, unlink
|
||||
msilib = import_module('msilib')
|
||||
import warnings
|
||||
with warnings.catch_warnings():
|
||||
warnings.simplefilter("ignore", DeprecationWarning)
|
||||
msilib = import_module('msilib')
|
||||
import msilib.schema
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Deprecate msilib.
|
Loading…
Reference in a new issue