mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Code style: Spaces around binary operators
Also removed the unused machines_json value. Contributes to issue CURA-5483.
This commit is contained in:
parent
6ac10db582
commit
e3b05f0867
2 changed files with 6 additions and 7 deletions
|
@ -38,7 +38,7 @@ class FirmwareUpdateCheckerJob(Job):
|
|||
result = self.STRING_ZERO_VERSION
|
||||
|
||||
try:
|
||||
request = urllib.request.Request(url, headers=self._headers)
|
||||
request = urllib.request.Request(url, headers = self._headers)
|
||||
response = urllib.request.urlopen(request)
|
||||
result = response.read().decode("utf-8")
|
||||
except URLError:
|
||||
|
@ -100,8 +100,8 @@ class FirmwareUpdateCheckerJob(Job):
|
|||
message = Message(i18n_catalog.i18nc(
|
||||
"@info Don't translate {machine_name}, since it gets replaced by a printer name!",
|
||||
"New features are available for your {machine_name}! It is recommended to update the firmware on your printer.").format(
|
||||
machine_name=machine_name),
|
||||
title=i18n_catalog.i18nc(
|
||||
machine_name = machine_name),
|
||||
title = i18n_catalog.i18nc(
|
||||
"@info:title The %s gets replaced with the printer name.",
|
||||
"New %s firmware available") % machine_name)
|
||||
|
||||
|
@ -109,8 +109,8 @@ class FirmwareUpdateCheckerJob(Job):
|
|||
i18n_catalog.i18nc("@action:button", "How to update"),
|
||||
"[no_icon]",
|
||||
"[no_description]",
|
||||
button_style=Message.ActionButtonStyle.LINK,
|
||||
button_align=Message.ActionButtonStyle.BUTTON_ALIGN_LEFT)
|
||||
button_style = Message.ActionButtonStyle.LINK,
|
||||
button_align = Message.ActionButtonStyle.BUTTON_ALIGN_LEFT)
|
||||
|
||||
message.actionTriggered.connect(self._callback)
|
||||
message.show()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue