Skip to content

Commit 4faaabf

Browse files
committed
Minor improvement for _mac_wav_play
1 parent d9a5236 commit 4faaabf

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

data/txt/sha256sums.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ c94d5c9ae4e4b996eaf0d06a6c5323a12f22653bb53c5eaf5400ee0bccf4a1eb doc/translatio
112112
0bccce9d2e48e7acc1ef126539a50d3d83c439f94cc6387c1331a9960604a2cd doc/translations/README-uk-UA.md
113113
285c997e8ae7381d765143b5de6721cad598d564fd5f01a921108f285d9603a2 doc/translations/README-vi-VN.md
114114
b553a179c731127a115d68dfb2342602ad8558a42aa123050ba51a08509483f6 doc/translations/README-zh-CN.md
115-
783ddbaa638d2d2987be7aa2e9e9e40aef8c0b7a132db60949e43bc733d01978 extra/beep/beep.py
115+
3194d9178c91a0fcfeeeff331e214f4e42df658031854d328c81da57480d091b extra/beep/beep.py
116116
509276140d23bfc079a6863e0291c4d0077dea6942658a992cbca7904a43fae9 extra/beep/beep.wav
117117
1d6e741e19e467650dce2ca84aa824d6df68ff74aedbe4afa8dbdb0193d94918 extra/beep/__init__.py
118118
3b54434b0d00c8fd12328ef8e567821bd73a796944cb150539aa362803ab46e5 extra/cloak/cloak.py
@@ -188,7 +188,7 @@ c6a182f6b7d3b0ad6f0888ea2a4de4148f0770549038d7de8bc3267b4c6635f7 lib/core/readl
188188
63ae69713c6ea9abfa10e71dfab8f2dcf42432177a38d2c1e98785bf1468674c lib/core/replication.py
189189
5bad5bc7115051cef7b84efa73fbafbf5e1db46eef32a445056b56cda750b66f lib/core/revision.py
190190
0dcb52c9c76a4b0acf2e9038f7d8f08c14543cef3cf7032831c6c0a99376ad24 lib/core/session.py
191-
d7dfa97fd24dd206144167df69f508fe042f8a0d13f70eb95c0949f891f9d262 lib/core/settings.py
191+
4aa551df40b183ef5ce876a70af38acc03f455ffbbd3b7be0c79c4c1909841e3 lib/core/settings.py
192192
a1e4f2860bffc73bbf2e5db293fa49dcb600ea35f950cda43dc953b3160ab3db lib/core/shell.py
193193
841716e87b90a3b598515910841f7cf8d33bb87c24a27fba1a80e36a831cbcd7 lib/core/subprocessng.py
194194
9731092f195e346716929323ea3c93247b23b9b92b0f32d3fd0acc3adf9876cc lib/core/target.py

extra/beep/beep.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def beep():
1818
if sys.platform.startswith("win"):
1919
_win_wav_play(BEEP_WAV_FILENAME)
2020
elif sys.platform.startswith("darwin"):
21-
_mac_beep()
21+
_mac_wav_play(BEEP_WAV_FILENAME)
2222
elif sys.platform.startswith("cygwin"):
2323
_cygwin_beep(BEEP_WAV_FILENAME)
2424
elif any(sys.platform.startswith(_) for _ in ("linux", "freebsd")):
@@ -40,9 +40,8 @@ def _speaker_beep():
4040
def _cygwin_beep(filename):
4141
os.system("play-sound-file '%s' 2>/dev/null" % filename)
4242

43-
def _mac_beep():
44-
import Carbon.Snd
45-
Carbon.Snd.SysBeep(1)
43+
def _mac_wav_play(filename):
44+
os.system("afplay '%s' 2>/dev/null" % BEEP_WAV_FILENAME)
4645

4746
def _win_wav_play(filename):
4847
import winsound

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from thirdparty import six
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.9.2.2"
22+
VERSION = "1.9.2.3"
2323
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2424
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2525
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

0 commit comments

Comments
 (0)