Skip to content

Commit feedd83

Browse files
committed
Preprocess: Don't use private attributes in f-strings
1 parent 972dd71 commit feedd83

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Orange/widgets/data/owpreprocess.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -738,9 +738,12 @@ def createinstance(params):
738738

739739
def __repr__(self):
740740
if self.__strategy == self.Fixed:
741-
return f"select {self.__k} {pl(self.__k,'feature')}"
741+
# private attributes may not appear translated strings
742+
num = self.__k
743+
return f"select {num} {pl(num,'feature')}"
742744
else:
743-
return f"select {self.__p} % features"
745+
perc = self.__p
746+
return f"select {perc} % features"
744747

745748

746749
def index_to_enum(enum, i):

0 commit comments

Comments
 (0)