From b8fe3369b68cdef02d4338111ea7ba80bdd26bb4 Mon Sep 17 00:00:00 2001 From: Carsten Tinggaard Date: Mon, 5 Jan 2009 12:31:32 +0000 Subject: [PATCH] Corrected usage of types module bzr-revno: 266 --- openlp/core/utils/winregistry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openlp/core/utils/winregistry.py b/openlp/core/utils/winregistry.py index 535898e9a..1cef482ce 100644 --- a/openlp/core/utils/winregistry.py +++ b/openlp/core/utils/winregistry.py @@ -79,9 +79,9 @@ class WinRegistry(Registry): Set a single value in the Windows registry. """ reg_type = _winreg.REG_BINARY - if type(value) is types.String: + if type(value) is types.StringType: reg_type = _winreg.REG_SZ - elif type(value) is types.Integer: + elif type(value) is types.IntType: reg_type = _winreg.REG_DWORD key_handle = _winreg.OpenKey(self.reg_handle, self.base_key + section) _winreg.SetValueEx(key_handle, key, 0, reg_type, value)