Skip to content

Commit

Permalink
Avoid unused "enumerate()" in loop.
Browse files Browse the repository at this point in the history
  • Loading branch information
scoder committed Dec 8, 2023
1 parent 02ddde3 commit f64f067
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Cython/Compiler/FusedNode.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,13 @@ def copy_cdef(self, env):
type.specialize_entry(entry, cname)

# Reuse existing Entries (e.g. from .pxd files).
for i, orig_entry in enumerate(env.cfunc_entries):
for orig_entry in env.cfunc_entries:
if entry.cname == orig_entry.cname and type.same_as_resolved_type(orig_entry.type):
copied_node.entry = env.cfunc_entries[i]
copied_node.entry = orig_entry
if not copied_node.entry.func_cname:
copied_node.entry.func_cname = entry.func_cname
entry = copied_node.entry
type = entry.type
entry = orig_entry
type = orig_entry.type
break
else:
new_cfunc_entries.append(entry)
Expand Down

0 comments on commit f64f067

Please sign in to comment.