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 |