Skip to content

Commit 87c1f17

Browse files
committed
Use integer division
1 parent 3aa735a commit 87c1f17

File tree

1 file changed

+1
-1
lines changed
  • adafruit_led_animation/animation

1 file changed

+1
-1
lines changed

adafruit_led_animation/animation/comet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def __init__(
7979
name=None,
8080
):
8181
if tail_length is None:
82-
tail_length = int(len(pixel_object) / 4)
82+
tail_length = len(pixel_object) // 4
8383
else:
8484
tail_length = max(2, min(tail_length, len(pixel_object)))
8585
self._tail_length = tail_length

0 commit comments

Comments
 (0)