Skip to content

Commit 277549c

Browse files
committed
fixed CQ for bitmessageqt.sound module
1 parent f03bdfb commit 277549c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/bitmessageqt/sound.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# -*- coding: utf-8 -*-
2+
"""Sound Module"""
23

34
# sound type constants
45
SOUND_NONE = 0
@@ -12,10 +13,12 @@
1213
# returns true if the given sound category is a connection sound
1314
# rather than a received message sound
1415
def is_connection_sound(category):
16+
"""Check if sound type is related to connectivity"""
1517
return category in (
1618
SOUND_CONNECTED,
1719
SOUND_DISCONNECTED,
1820
SOUND_CONNECTION_GREEN
1921
)
2022

23+
2124
extensions = ('wav', 'mp3', 'oga')

0 commit comments

Comments
 (0)