mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue