8000 fixup! Merge remote-tracking branch 'origin/master' into modernize-im… · pythonnet/pythonnet@2af066d · GitHub
[go: up one dir, main page]

Skip to content

Commit 2af066d

Browse files
committed
fixup! Merge remote-tracking branch 'origin/master' into modernize-import-hook
1 parent e71a0ef commit 2af066d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runtime/importhook.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ def __init__(self):
3939
@classmethod
4040
def find_spec(klass, fullname, paths=None, target=None):
4141
import clr
42-
if clr._availableNamespaces and fullname in clr._availableNamespaces:
42+
if clr._available_namespaces and fullname in clr._available_namespaces:
4343
return importlib.machinery.ModuleSpec(fullname, DotNetLoader(), is_package=True)
4444
return None
4545
";
46-
const string availableNsKey = "_availableNamespaces";
46+
const string availableNsKey = "_available_namespaces";
4747

4848
/// <summary>
4949
/// Initialization performed on startup of the Python runtime.

0 commit comments

Comments
 (0)
0