From: Brian Curtin Date: Tue, 13 Apr 2010 12:44:24 +0000 (+0000) Subject: Fixed extraneous _winreg (changed to winreg in py3k). Thanks, Tim Golden. X-Git-Tag: v3.1.3rc1~948 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6f353a04a3b94ab8ef22feb32adb70811febc9be;p=python Fixed extraneous _winreg (changed to winreg in py3k). Thanks, Tim Golden. --- diff --git a/Lib/test/test_winsound.py b/Lib/test/test_winsound.py index 434e602c77..88aed778c0 100644 --- a/Lib/test/test_winsound.py +++ b/Lib/test/test_winsound.py @@ -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 "":