From 0b11fe1121056769f6edcf56e0d00a5a06a85ed4 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Thu, 30 Dec 2021 17:19:28 -0600 Subject: [PATCH] pywinrt: drop init_apartment() in module init It seems that this is not needed. It could be that cppwinrt calls CoIncrementMTAUsage implicitly (as in idea suggested in https://github.com/contextfree/winrt-rust/issues/62#issuecomment-457316407). Fixes: https://github.com/microsoft/xlang/issues/690 --- src/tool/python/strings/package_init.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/tool/python/strings/package_init.py b/src/tool/python/strings/package_init.py index 253a321a3..420273cd4 100644 --- a/src/tool/python/strings/package_init.py +++ b/src/tool/python/strings/package_init.py @@ -1,5 +1,4 @@ from . import _winrt -_winrt.init_apartment(_winrt.MTA) def _import_ns_module(ns): import importlib.machinery