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