Commit 95447d55 authored by Stefan Behnel's avatar Stefan Behnel

fix copy&paste bugs

parent 0223b394
......@@ -4568,7 +4568,7 @@ class SequenceNode(ExprNode):
def analyse_target_types(self, env):
if self.mult_factor:
error(arg.pos, "can't assign to multiplied sequence")
error(self.pos, "can't assign to multiplied sequence")
self.unpacked_items = []
self.coerced_unpacked_items = []
self.any_coerced_items = False
......
......@@ -2168,7 +2168,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
else:
module_name = '__Pyx_BUILTIN_MODULE_NAME'
if type.name in Code.non_portable_builtins_map:
condition, replacement = Code.non_portable_builtins_map[entry.name]
condition, replacement = Code.non_portable_builtins_map[type.name]
code.putln("#if %s" % condition)
code.putln('%s = __Pyx_ImportType(%s, "%s", sizeof(%s), 1); %s' % (
type.typeptr_cname,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment