Skip to content

Commit cac422c

Browse files
committed
sound_playfile pylint fixes
1 parent 5de699b commit cac422c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/plugins/sound_playfile.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
# -*- coding: utf-8 -*-
2-
2+
"""
3+
src/plugins/sound_playfile.py
4+
===================================
5+
"""
36

47
try:
58
import winsound
69

710
def connect_plugin(sound_file):
11+
"""Plugin's entry point"""
812
winsound.PlaySound(sound_file, winsound.SND_FILENAME)
913
except ImportError:
1014
import os
@@ -18,7 +22,8 @@ def _subprocess(*args):
1822
args, stdout=FNULL, stderr=subprocess.STDOUT, close_fds=True)
1923

2024
def connect_plugin(sound_file):
21-
global play_cmd
25+
"""This function implements the entry point."""
26+
global play_cmd # pylint: disable=global-statement
2227

2328
ext = os.path.splitext(sound_file)[-1]
2429
try:

0 commit comments

Comments
 (0)