Kaydet (Commit) 6f353a04 authored tarafından Brian Curtin's avatar Brian Curtin

Fixed extraneous _winreg (changed to winreg in py3k). Thanks, Tim Golden.

üst ea9dbb8e
......@@ -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 "":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment