Skip to content

Commit

Permalink
[_post_coinit\unknwn.py] Remove unused parameter in _shutdown (#777)
Browse files Browse the repository at this point in the history
  • Loading branch information
moi15moi authored Jan 29, 2025
1 parent 00be866 commit d305713
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions comtypes/_post_coinit/unknwn.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# https://learn.microsoft.com/en-us/windows/win32/api/unknwn/

import logging
import sys
from ctypes import HRESULT, POINTER, byref, c_ulong, c_void_p
from typing import TYPE_CHECKING, ClassVar, List, Optional, Type, TypeVar

Expand All @@ -19,10 +18,7 @@
def _shutdown(
func=_CoUninitialize,
_debug=logger.debug,
_exc_clear=getattr(sys, "exc_clear", lambda: None),
):
# Make sure no COM pointers stay in exception frames.
_exc_clear()
# Sometimes, CoUninitialize, running at Python shutdown,
# raises an exception. We suppress this when __debug__ is
# False.
Expand Down

0 comments on commit d305713

Please sign in to comment.