Skip to content

Commit 3480ac1

Browse files
committed
Fix newly-flagged ruff issues
1 parent 34775b5 commit 3480ac1

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

pycuda/compiler.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,9 @@ def _find_pycuda_include_path():
210210

211211

212212
DEFAULT_NVCC_FLAGS = [
213-
_flag.strip()
214-
for _flag in os.environ.get("PYCUDA_DEFAULT_NVCC_FLAGS", "").split()
215-
if _flag.strip()
213+
flag.strip()
214+
for flag in os.environ.get("PYCUDA_DEFAULT_NVCC_FLAGS", "").split()
215+
if flag.strip()
216216
]
217217

218218

test/test_gpuarray.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -796,8 +796,8 @@ def test_any(self, dtype):
796796
assert any_ary_gpu.dtype == any_ary.dtype
797797

798798
import itertools
799-
for _array in list(itertools.product([0, 1], [0, 1], [0, 1])):
800-
array = np.array(_array, dtype)
799+
for array_ in list(itertools.product([0, 1], [0, 1], [0, 1])):
800+
array = np.array(array_, dtype)
801801
array_gpu = gpuarray.to_gpu(array)
802802
any_array = np.any(array)
803803
any_array_gpu = array_gpu.any().get()
@@ -821,8 +821,8 @@ def test_all(self, dtype):
821821
assert all_ary_gpu.dtype == all_ary.dtype
822822

823823
import itertools
824-
for _array in list(itertools.product([0, 1], [0, 1], [0, 1])):
825-
array = np.array(_array, dtype)
824+
for array_ in list(itertools.product([0, 1], [0, 1], [0, 1])):
825+
array = np.array(array_, dtype)
826826
array_gpu = gpuarray.to_gpu(array)
827827
all_array = np.all(array)
828828
all_array_gpu = array_gpu.all().get()

0 commit comments

Comments
 (0)