diff options
author | Brian Curtin <brian.curtin@gmail.com> | 2010-04-13 12:44:24 (GMT) |
---|---|---|
committer | Brian Curtin <brian.curtin@gmail.com> | 2010-04-13 12:44:24 (GMT) |
commit | 6f353a04a3b94ab8ef22feb32adb70811febc9be (patch) | |
tree | 941ffb94e6ec6f57cdb70b44109320b1c2d5999a /Lib/test | |
parent | ea9dbb8e51bb27e1d11717eca5843b99fd4fd3b8 (diff) | |
download | cpython-6f353a04a3b94ab8ef22feb32adb70811febc9be.zip cpython-6f353a04a3b94ab8ef22feb32adb70811febc9be.tar.gz cpython-6f353a04a3b94ab8ef22feb32adb70811febc9be.tar.bz2 |
Fixed extraneous _winreg (changed to winreg in py3k). Thanks, Tim Golden.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_winsound.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_winsound.py b/Lib/test/test_winsound.py index 434e602..88aed77 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 "": |