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