Skip to content

Commit abdb99e

Browse files
committed
Rename variable because repr is a build-in function of Python
1 parent 895d27e commit abdb99e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

windpowerlib/wind_turbine_cluster.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ def __init__(self, wind_farms, name='', **kwargs):
5555

5656
def __repr__(self):
5757
if self.name is not '':
58-
repr = 'Wind turbine cluster: {name}'.format(name=self.name)
58+
wf_repr = 'Wind turbine cluster: {name}'.format(name=self.name)
5959
else:
6060
info = []
6161
for wind_farm in self.wind_farms:
6262
info.append(wind_farm)
63-
repr = r'Wind turbine cluster with: {info}'.format(info=info)
64-
return repr
63+
wf_repr = r'Wind turbine cluster with: {info}'.format(info=info)
64+
return wf_repr
6565

6666
@property
6767
def nominal_power(self):

0 commit comments

Comments
 (0)