File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -1376,10 +1376,9 @@ def make_arrays(funcdict):
1376
1376
funclist = []
1377
1377
datalist = []
1378
1378
siglist = []
1379
- k = 0
1380
1379
sub = 0
1381
1380
1382
- for t in uf .type_descriptions :
1381
+ for k , t in enumerate ( uf .type_descriptions ) :
1383
1382
cfunc_alias = t .cfunc_alias if t .cfunc_alias else name
1384
1383
cfunc_fname = None
1385
1384
if t .func_data is FullTypeDescr :
@@ -1439,8 +1438,6 @@ def make_arrays(funcdict):
1439
1438
for x in t .in_ + t .out :
1440
1439
siglist .append ('NPY_%s' % (english_upper (chartoname [x ]),))
1441
1440
1442
- k += 1
1443
-
1444
1441
if funclist or siglist or datalist :
1445
1442
funcnames = ', ' .join (funclist )
1446
1443
signames = ', ' .join (siglist )
Original file line number Diff line number Diff line change @@ -18,8 +18,7 @@ def _convert_from_string(data):
18
18
19
19
rows = data .split (';' )
20
20
newdata = []
21
- count = 0
22
- for row in rows :
21
+ for count , row in enumerate (rows ):
23
22
trow = row .split (',' )
24
23
newrow = []
25
24
for col in trow :
@@ -29,7 +28,6 @@ def _convert_from_string(data):
29
28
Ncols = len (newrow )
30
29
elif len (newrow ) != Ncols :
31
30
raise ValueError ("Rows not the same size." )
32
- count += 1
33
31
newdata .append (newrow )
34
32
return newdata
35
33
You can’t perform that action at this time.
0 commit comments