Skip to content

Commit fd38d2f

Browse files
committed
use conventional naming for unused loop variables in Python
1 parent 48e542a commit fd38d2f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pytools/dump_io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def __init__(self, fh, byteorder="little"):
5959
self.ndims = int.from_bytes(fh.read(INT_SIZE), byteorder)
6060
dims = []
6161
ntot = 1
62-
for dim in range(self.ndims):
62+
for _ in range(self.ndims):
6363
dims.append(int.from_bytes(fh.read(INT_SIZE), byteorder))
6464
ntot = ntot * dims[-1]
6565
raw = struct.unpack(str(ntot) + stringchar, fh.read(mysize * ntot))

pytools/idfx_io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def __init__(self, fh, byteorder="little"):
2626
return
2727
self.ndims = int.from_bytes(fh.read(INT_SIZE), byteorder)
2828
dims = []
29-
for dim in range(self.ndims):
29+
for _ in range(self.ndims):
3030
dims.append(int.from_bytes(fh.read(INT_SIZE), byteorder))
3131
ntot = int(np.prod(dims))
3232
raw = struct.unpack(str(ntot) + "d", fh.read(DOUBLE_SIZE * ntot))

0 commit comments

Comments
 (0)