Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Commit 0418a22

Browse files
committed
Fix for python3.9, avoid None slice
1 parent e8f6cbb commit 0418a22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numba/openmp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5323,7 +5323,7 @@ def slice_list(self, args):
53235323
def name_slice(self, args):
53245324
if config.DEBUG_OPENMP >= 1:
53255325
print("visit name_slice", args, type(args))
5326-
if len(args) == 1:
5326+
if len(args) == 1 or args[1] is None:
53275327
return args[0]
53285328
else:
53295329
return NameSlice(args[0], args[1:])

0 commit comments

Comments
 (0)