mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Whole bunch of um-pep8 style fixes.
This commit is contained in:
parent
938ac7a08b
commit
743b403b29
10 changed files with 22 additions and 20 deletions
|
@ -18,7 +18,7 @@ from . import Cura_pb2
|
|||
|
||||
## Formatter class that handles token expansion in start/end gcod
|
||||
class GcodeStartEndFormatter(Formatter):
|
||||
def get_value(self, key, args, kwargs):
|
||||
def get_value(self, key, args, kwargs): # [CodeStyle: get_value is an overridden function from the Formatter class]
|
||||
if isinstance(key, str):
|
||||
try:
|
||||
return kwargs[key]
|
||||
|
@ -118,8 +118,8 @@ class StartSliceJob(Job):
|
|||
msg = Cura_pb2.SettingList()
|
||||
settings = profile.getAllSettingValues(include_machine = True)
|
||||
start_gcode = settings["machine_start_gcode"]
|
||||
settings["material_bed_temp_prepend"] = not "{material_bed_temperature}" in start_gcode
|
||||
settings["material_print_temp_prepend"] = not "{material_print_temperature}" in start_gcode
|
||||
settings["material_bed_temp_prepend"] = "{material_bed_temperature}" not in start_gcode
|
||||
settings["material_print_temp_prepend"] = "{material_print_temperature}" not in start_gcode
|
||||
for key, value in settings.items():
|
||||
s = msg.settings.add()
|
||||
s.name = key
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue