Utilities/ClassBrowsers/rbclbr.py

changeset 428
58405c24aa09
parent 97
c4086afea02b
child 791
9ec2ac20e54e
equal deleted inserted replaced
427:6af5d12cfecb 428:58405c24aa09
329 # it's a function 329 # it's a function
330 f = Function(module, meth_name, 330 f = Function(module, meth_name,
331 file, lineno, meth_sig) 331 file, lineno, meth_sig)
332 if meth_name in dict_counts: 332 if meth_name in dict_counts:
333 dict_counts[meth_name] += 1 333 dict_counts[meth_name] += 1
334 meth_name = "%s_%d" % (meth_name, dict_counts[meth_name]) 334 meth_name = "{0}_{1:d}".format(meth_name, dict_counts[meth_name])
335 else: 335 else:
336 dict_counts[meth_name] = 0 336 dict_counts[meth_name] = 0
337 dict[meth_name] = f 337 dict[meth_name] = f
338 classstack.append((f, thisindent)) # Marker for nested fns 338 classstack.append((f, thisindent)) # Marker for nested fns
339 339

eric ide

mercurial