Skip to content

Commit 02a7b86

Browse files
committed
pylint exception
1 parent 428601e commit 02a7b86

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

adafruit_pyportal/peripherals.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ def play_file(self, file_name, wait_to_finish=True):
148148
:param bool wait_to_finish: flag to determine if this is a blocking call
149149
150150
"""
151+
152+
# pylint: disable=consider-using-with
153+
# can't use `with` because we need wavefile to remain open after return
151154
self.wavfile = open(file_name, "rb")
152155
wavedata = audiocore.WaveFile(self.wavfile)
153156
self._speaker_enable.value = True

0 commit comments

Comments
 (0)