Skip to content

Commit 24eff56

Browse files
committed
Minor performance tweak
1 parent 057a5f0 commit 24eff56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_emc2101/emc2101_lut.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def __repr__(self):
9393
def __str__(self):
9494
"""return the official string representation of the LUT"""
9595
value_strs = []
96-
lut_keys = list(sorted(self.lut_values.keys()))
96+
lut_keys = tuple(sorted(self.lut_values.keys()))
9797
for temp in lut_keys:
9898
fan_drive = self.lut_values[temp]
9999
value_strs.append("%d deg C => %.1f%% duty cycle" % (temp, fan_drive))

0 commit comments

Comments
 (0)