Skip to content

Commit 003e6c1

Browse files
committed
Fix flag and only intern strings
1 parent 2f8fa9e commit 003e6c1

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Lib/importlib/_bootstrap_external.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,10 @@ def __init__(self, fullname, path):
902902
"""Cache the module name and the path to the file found by the
903903
finder."""
904904
self.name = fullname
905-
self.path = sys.intern(path)
905+
if isinstance(path, str):
906+
self.path = sys.intern(path)
907+
else:
908+
sys.path = path
906909

907910
def __eq__(self, other):
908911
return (self.__class__ == other.__class__ and

Python/sysmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// DO NOT MERGE
2-
//#define TAG NULL
2+
#define TAG NULL
33

44

55
/* System module */

0 commit comments

Comments
 (0)