Replace f string since it's not available in Python3.5

That should fix the failing test which produces a SyntaxError.

CURA-7827
This commit is contained in:
Kostas Karmas 2020-11-05 17:38:34 +01:00
parent 1a759f81df
commit 845c994cbc

View file

@ -866,7 +866,7 @@ class MachineManager(QObject):
user_changes_container = self._global_container_stack.userChanges
if self.numberExtrudersEnabled > 1:
user_changes_container.setProperty(setting_key, "value", new_value)
Logger.log("d", f"Setting '{setting_key}' in '{user_changes_container}' to '{new_value}' because there are more than 1 enabled extruders.")
Logger.log("d", "Setting '{}' in '{}' to '{}' because there are more than 1 enabled extruders.".format(setting_key, user_changes_container, new_value))
def setActiveMachineExtruderCount(self, extruder_count: int) -> None:
"""Set the amount of extruders on the active machine (global stack)