add newline at end

and ignore global statement used for file name remember (Limor had said it's ok)
This commit is contained in:
Mike Barela 2019-01-16 16:19:54 -05:00 committed by GitHub
parent 10cb98aa1d
commit 19a18bf4dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
time.sleep(0.1)