Merged revisions 80040 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r80040 | mark.dickinson | 2010-04-13 12:54:59 +0100 (Tue, 13 Apr 2010) | 1 line Fix invalid syntax. ........
This commit is contained in:
parent
04de40e6d7
commit
ea9dbb8e51
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue