From 19a18bf4dd0a5621ede74cc864864cdf3e8b56b5 Mon Sep 17 00:00:00 2001 From: Mike Barela Date: Wed, 16 Jan 2019 16:19:54 -0500 Subject: [PATCH] add newline at end and ignore global statement used for file name remember (Limor had said it's ok) --- Grand_Central_Soundboard/code.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Grand_Central_Soundboard/code.py b/Grand_Central_Soundboard/code.py index 3215d6eb..97dbbbe0 100644 --- a/Grand_Central_Soundboard/code.py +++ b/Grand_Central_Soundboard/code.py @@ -28,7 +28,7 @@ gc_audio = audioio.AudioOut(board.A0) audio_file = None def play_file(filename): - global audio_file + global audio_file # pylint: disable=global-statement if gc_audio.playing: gc_audio.stop() if audio_file: @@ -49,4 +49,4 @@ while True: gc_audio.stop() if audio_file: audio_file.close() - time.sleep(0.1) \ No newline at end of file + time.sleep(0.1)