Remove trailing whitespace from Python files

This commit is contained in:
Nino van Hooff 2020-05-29 14:30:33 +02:00
parent 1e33360c35
commit 89f0970a88
157 changed files with 562 additions and 562 deletions

View file

@ -118,7 +118,7 @@ class USBPrinterOutputDevice(PrinterOutputDevice):
def requestWrite(self, nodes: List["SceneNode"], file_name: Optional[str] = None, limit_mimetypes: bool = False,
file_handler: Optional["FileHandler"] = None, filter_by_machine: bool = False, **kwargs) -> None:
"""Request the current scene to be sent to a USB-connected printer.
:param nodes: A collection of scene nodes to send. This is ignored.
:param file_name: A suggestion for a file name to write.
:param filter_by_machine: Whether to filter MIME types by machine. This
@ -148,7 +148,7 @@ class USBPrinterOutputDevice(PrinterOutputDevice):
def _printGCode(self, gcode: str):
"""Start a print based on a g-code.
:param gcode: The g-code to print.
"""
self._gcode.clear()

View file

@ -110,7 +110,7 @@ class USBPrinterOutputDeviceManager(QObject, OutputDevicePlugin):
def getSerialPortList(self, only_list_usb = False):
"""Create a list of serial ports on the system.
:param only_list_usb: If true, only usb ports are listed
"""
base_list = []

View file

@ -31,7 +31,7 @@ def readHex(filename):
check_sum &= 0xFF
if check_sum != 0:
raise Exception("Checksum error in hex file: " + line)
if rec_type == 0:#Data record
while len(data) < addr + rec_len:
data.append(0)

View file

@ -22,7 +22,7 @@ class IspBase():
if not self.chip:
raise IspError("Chip with signature: " + str(self.getSignature()) + "not found")
self.chipErase()
Logger.log("d", "Flashing %i bytes", len(flash_data))
self.writeFlash(flash_data)
Logger.log("d", "Verifying %i bytes", len(flash_data))

View file

@ -56,7 +56,7 @@ class Stk500v2(ispBase.IspBase):
self.close()
raise
self.serial.timeout = 5
def close(self):
if self.serial is not None:
self.serial.close()