summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2022-05-17 17:39:12 +0200
committerStefan Behnel <stefan_ml@behnel.de>2022-05-17 17:39:12 +0200
commitc0dfb9c2f592b7e0ece90ec83fbadcf6e6da3d47 (patch)
tree3a2d4e706e2511c43d3dac37912dfcebbeb15823
parent18b19ad0914c5a33b733badf24578e693c48d7e3 (diff)
downloadcython-c0dfb9c2f592b7e0ece90ec83fbadcf6e6da3d47.tar.gz
Use encoded string since `ModuleNode.full_module_name` may originate from different sources.
See https://github.com/cython/cython/pull/4764
-rw-r--r--Cython/Compiler/ModuleNode.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py
index 176e4afe0..bb5aa66fb 100644
--- a/Cython/Compiler/ModuleNode.py
+++ b/Cython/Compiler/ModuleNode.py
@@ -2633,7 +2633,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
code.putln(code.error_goto_if_neg(
'__Pyx_SetPackagePathFromImportLib(%s)' % (
code.globalstate.get_py_string_const(
- self.full_module_name).cname),
+ EncodedString(self.full_module_name)).cname),
self.pos))
code.putln("}")