Fix invalid syntax.

This commit is contained in:
Mark Dickinson 2010-04-13 11:54:59 +00:00
parent a09543c65c
commit 141b72e41c
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ def has_sound(sound):
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 u"":
if value is not "":
return True
else:
return False