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

@ -89,7 +89,7 @@ def calc_acceleration_time_from_distance(initial_feedrate: float, distance: floa
def calc_intersection_distance(initial_feedrate: float, final_feedrate: float, acceleration: float, distance: float) -> float:
"""Calculates the point at which you must start braking.
This gives the distance from the start of a line at which you must start
decelerating (at a rate of `-acceleration`) if you started at speed
`initial_feedrate` and accelerated until this point and want to end at the
@ -145,7 +145,7 @@ class Command:
def calculate_trapezoid(self, entry_factor, exit_factor):
"""Calculate the velocity-time trapezoid function for this move.
Each move has a three-part function mapping time to velocity.
"""

View file

@ -11,7 +11,7 @@ uranium_files = {"uranium"}
def lionbridge_import(source: str) -> None:
"""Imports translation files from Lionbridge.
Lionbridge has a bit of a weird export feature. It exports it to the same
file type as what we imported, so that's a .pot file. However this .pot file
only contains the translations, so the header is completely empty. We need
@ -48,7 +48,7 @@ def lionbridge_import(source: str) -> None:
def destination_cura() -> str:
"""Gets the destination path to copy the translations for Cura to.
:return: Destination path for Cura.
"""
return os.path.abspath(os.path.join(__file__, "..", "..", "resources", "i18n"))
@ -56,7 +56,7 @@ def destination_cura() -> str:
def destination_uranium() -> str:
"""Gets the destination path to copy the translations for Uranium to.
:return: Destination path for Uranium.
"""
try:
@ -75,7 +75,7 @@ def destination_uranium() -> str:
def merge(source: str, destination: str) -> str:
"""Merges translations from the source file into the destination file if they
were missing in the destination file.
:param source: The contents of the source .po file.
:param destination: The contents of the destination .po file.
@ -133,7 +133,7 @@ def merge(source: str, destination: str) -> str:
def find_translation(source: str, msgctxt: str, msgid: str) -> str:
"""Finds a translation in the source file.
:param source: The contents of the source .po file.
:param msgctxt: The ctxt of the translation to find.
:param msgid: The id of the translation to find.