Fix code style

CURA-4224
This commit is contained in:
Lipu Fei 2017-09-14 08:23:26 +02:00
parent be57ccb127
commit 9567a6921d
2 changed files with 2 additions and 3 deletions

View file

@ -17,7 +17,7 @@ i18n_catalog = i18nCatalog("cura")
# The plugin is currently only usable for applications maintained by Ultimaker. But it should be relatively easy # The plugin is currently only usable for applications maintained by Ultimaker. But it should be relatively easy
# to change it to work for other applications. # to change it to work for other applications.
class FirmwareUpdateChecker(Extension): class FirmwareUpdateChecker(Extension):
url = "http://software.ultimaker.com/jedi/releases/latest.version" JEDI_VERSION_URL = "http://software.ultimaker.com/jedi/releases/latest.version"
def __init__(self): def __init__(self):
super().__init__() super().__init__()
@ -45,5 +45,5 @@ class FirmwareUpdateChecker(Extension):
# \param silent type(boolean) Suppresses messages other than "new version found" messages. # \param silent type(boolean) Suppresses messages other than "new version found" messages.
# This is used when checking for a new firmware version at startup. # This is used when checking for a new firmware version at startup.
def checkFirmwareVersion(self, container = None, silent = False): def checkFirmwareVersion(self, container = None, silent = False):
job = FirmwareUpdateCheckerJob(container = container, silent = silent, url = self.url) job = FirmwareUpdateCheckerJob(container = container, silent = silent, url = self.JEDI_VERSION_URL)
job.start() job.start()

View file

@ -13,7 +13,6 @@ import codecs
from PyQt5.QtCore import QUrl from PyQt5.QtCore import QUrl
from PyQt5.QtGui import QDesktopServices from PyQt5.QtGui import QDesktopServices
from UM.i18n import i18nCatalog from UM.i18n import i18nCatalog
i18n_catalog = i18nCatalog("cura") i18n_catalog = i18nCatalog("cura")