aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2021-09-30 13:06:34 -0400
committerKevin O'Connor <kevin@koconnor.net>2021-09-30 13:14:20 -0400
commitbcbdc983a8d768aa6514fe2adb2541d1b9085a00 (patch)
tree2680f201c13e55551ad23209f555067ba9276da7
parent01ab8267a67b91af228a78f06e8d32d04752356c (diff)
downloadkutter-bcbdc983a8d768aa6514fe2adb2541d1b9085a00.tar.gz
kutter-bcbdc983a8d768aa6514fe2adb2541d1b9085a00.tar.xz
kutter-bcbdc983a8d768aa6514fe2adb2541d1b9085a00.zip
screws_tilt_adjust: Improve Python3 compatibility
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r--klippy/extras/screws_tilt_adjust.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/screws_tilt_adjust.py b/klippy/extras/screws_tilt_adjust.py
index f98cd0fd..1bb599ed 100644
--- a/klippy/extras/screws_tilt_adjust.py
+++ b/klippy/extras/screws_tilt_adjust.py
@@ -69,7 +69,7 @@ class ScrewsTiltAdjust:
or (not is_clockwise_thread and self.direction == 'CCW'))
min_or_max = max if use_max else min
i_base, z_base = min_or_max(
- enumerate([pos[2] for pos in positions]), key=lambda (i, z): z)
+ enumerate([pos[2] for pos in positions]), key=lambda v: v[1])
else:
# First screw is the base position used for comparison
i_base, z_base = 0, positions[0][2]