]> granicus.if.org Git - python/commitdiff
Fixed extraneous _winreg (changed to winreg in py3k). Thanks, Tim Golden.
authorBrian Curtin <brian.curtin@gmail.com>
Tue, 13 Apr 2010 12:44:24 +0000 (12:44 +0000)
committerBrian Curtin <brian.curtin@gmail.com>
Tue, 13 Apr 2010 12:44:24 +0000 (12:44 +0000)
Lib/test/test_winsound.py

index 434e602c77057b9b0d6df7018f967535cc8c08db..88aed778c057d8179af6da21cdc396f5705336d8 100644 (file)
@@ -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 "":