bpo-20486: Implement Database.Close() method in msilib by berkerpeksag · Pull Request #4141 · python/cpython

@zware thanks for the review! I just renamed msiobj_close to msidb_close to make it consistent with the existing naming scheme. I've also test the example in the bug report on my Windows box:

>>> import msilib as m
>>> db = m.OpenDatabase('py33.msi', m.MSIDBOPEN_TRANSACT)
>>> db.Commit()
>>> db2 = m.OpenDatabase('py33.msi', m.MSIDBOPEN_TRANSACT)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
_msi.MSIError: 1: 2203 2: py33.msi 3: -2147287008
>>> db.Close()
>>> db2 = m.OpenDatabase('py33.msi', m.MSIDBOPEN_TRANSACT)