Skip to content

Commit a19e3c3

Browse files
committed
Change use of self._text to local variable text
1 parent d2b44c5 commit a19e3c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_display_text/bitmap_label.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def _reset_text(
157157
loose_box_y,
158158
loose_y_offset,
159159
) = self._text_bounding_box(
160-
self._text,
160+
text,
161161
self._font,
162162
) # calculate the box size for a tight and loose backgrounds
163163

@@ -179,7 +179,7 @@ def _reset_text(
179179
# Place the text into the Bitmap
180180
self._place_text(
181181
self._bitmap,
182-
self._text,
182+
text,
183183
self._font,
184184
self._padding_left - x_offset,
185185
self._padding_top + y_offset,

0 commit comments

Comments
 (0)