mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Fixed extraneous _winreg (changed to winreg in py3k). Thanks, Tim Golden.
This commit is contained in:
parent
ea9dbb8e51
commit
6f353a04a3
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ import winreg
|
||||||
def has_sound(sound):
|
def has_sound(sound):
|
||||||
"""Find out if a particular event is configured with a default sound"""
|
"""Find out if a particular event is configured with a default sound"""
|
||||||
try:
|
try:
|
||||||
key = winreg.OpenKeyEx(_winreg.HKEY_CURRENT_USER,
|
key = winreg.OpenKeyEx(winreg.HKEY_CURRENT_USER,
|
||||||
"AppEvents\Schemes\Apps\.Default\{0}\.Default".format(sound))
|
"AppEvents\Schemes\Apps\.Default\{0}\.Default".format(sound))
|
||||||
value = winreg.EnumValue(key, 0)[1]
|
value = winreg.EnumValue(key, 0)[1]
|
||||||
if value is not "":
|
if value is not "":
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue