Skip to content

Commit 1b6cd87

Browse files
authored
gh-91217: deprecate msilib (GH-91515)
1 parent 861974b commit 1b6cd87

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

Doc/whatsnew/3.11.rst

+1
Original file line numberDiff line numberDiff line change
@@ -857,6 +857,7 @@ Deprecated
857857
* :mod:`chunk`
858858
* :mod:`crypt`
859859
* :mod:`imghdr`
860+
* :mod:`msilib`
860861

861862
(Contributed by Brett Cannon in :issue:`47061`.)
862863

Lib/msilib/__init__.py

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
import re
77
import string
88
import sys
9+
import warnings
10+
11+
warnings._deprecated(__name__, remove=(3, 13))
912

1013
AMD64 = "AMD64" in sys.version
1114
# Keep msilib.Win64 around to preserve backwards compatibility.

Lib/test/test_msilib.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
import unittest
44
from test.support.import_helper import import_module
55
from test.support.os_helper import TESTFN, unlink
6-
msilib = import_module('msilib')
6+
import warnings
7+
with warnings.catch_warnings():
8+
warnings.simplefilter("ignore", DeprecationWarning)
9+
msilib = import_module('msilib')
710
import msilib.schema
811

912

Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Deprecate msilib.

0 commit comments

Comments
 (0)