Skip to content

Commit

Permalink
Preprocess: Don't use private attributes in f-strings
Browse files Browse the repository at this point in the history
  • Loading branch information
janezd committed Oct 6, 2024
1 parent 972dd71 commit feedd83
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Orange/widgets/data/owpreprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -738,9 +738,12 @@ def createinstance(params):

def __repr__(self):
if self.__strategy == self.Fixed:
return f"select {self.__k} {pl(self.__k,'feature')}"
# private attributes may not appear translated strings
num = self.__k
return f"select {num} {pl(num,'feature')}"
else:
return f"select {self.__p} % features"
perc = self.__p
return f"select {perc} % features"


def index_to_enum(enum, i):
Expand Down

0 comments on commit feedd83

Please sign in to comment.