Skip to content

Commit

Permalink
pywinrt: drop init_apartment() in module init
Browse files Browse the repository at this point in the history
It seems that this is not needed. It could be that cppwinrt calls
CoIncrementMTAUsage implicitly (as in idea suggested in
contextfree/winrt-rust#62 (comment)).

Fixes: microsoft#690
  • Loading branch information
dlech committed Dec 30, 2021
1 parent 90cf386 commit 0b11fe1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/tool/python/strings/package_init.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from . import _winrt
_winrt.init_apartment(_winrt.MTA)

def _import_ns_module(ns):
import importlib.machinery
Expand Down

0 comments on commit 0b11fe1

Please sign in to comment.