[Python-checkins] r80046 - python/branches/release31-maint/Lib/test/test_winsound.py

brian.curtin python-checkins at python.org
Tue Apr 13 14:44:24 CEST 2010


Author: brian.curtin
Date: Tue Apr 13 14:44:24 2010
New Revision: 80046

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


Modified:
   python/branches/release31-maint/Lib/test/test_winsound.py

Modified: python/branches/release31-maint/Lib/test/test_winsound.py
==============================================================================
--- python/branches/release31-maint/Lib/test/test_winsound.py	(original)
+++ python/branches/release31-maint/Lib/test/test_winsound.py	Tue Apr 13 14:44:24 2010
@@ -13,7 +13,7 @@
 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 "":


More information about the Python-checkins mailing list