gh-91217: deprecate msilib (GH-91515)

This commit is contained in:
Brett Cannon 2022-04-14 12:50:11 -07:00 committed by GitHub
parent 861974b514
commit 1b6cd872f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 1 deletions

View file

@ -857,6 +857,7 @@ Deprecated
* :mod:`chunk`
* :mod:`crypt`
* :mod:`imghdr`
* :mod:`msilib`
(Contributed by Brett Cannon in :issue:`47061`.)

View file

@ -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.

View file

@ -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

View file

@ -0,0 +1 @@
Deprecate msilib.