This commit is contained in:
Michael Walton 2016-05-29 23:21:46 -04:00
parent 3a5ffff90f
commit 4e2351bca5

View File

@ -119,7 +119,6 @@ def _mbcs_to_unicode_wrap(obj, vtype):
return _mbcs_to_unicode(obj) return _mbcs_to_unicode(obj)
class Registry(object): # pylint: disable=R0903 class Registry(object): # pylint: disable=R0903
''' '''
Delay '_winreg' usage until this module is used Delay '_winreg' usage until this module is used
@ -493,11 +492,6 @@ def read_value(hive, key, vname=None, use_32bit_registry=False):
return ret return ret
def set_value(hive, def set_value(hive,
key, key,
vname=None, vname=None,
@ -605,7 +599,7 @@ def set_value(hive,
local_vname = _mbcs_to_unicode(vname) local_vname = _mbcs_to_unicode(vname)
local_vtype = _mbcs_to_unicode(vtype) local_vtype = _mbcs_to_unicode(vtype)
local_vdata = _mbcs_to_unicode_wrap(vdata, vtype) local_vdata = _mbcs_to_unicode_wrap(vdata, vtype)
except TypeError as exc: # pylint: disable=E0602 except TypeError as exc: # pylint: disable=E0602
log.error(exc, exc_info=True) log.error(exc, exc_info=True)
return False return False
else: else:
@ -737,7 +731,6 @@ def delete_key_recursive(hive, key, use_32bit_registry=False):
return ret return ret
def delete_value(hive, key, vname=None, use_32bit_registry=False): def delete_value(hive, key, vname=None, use_32bit_registry=False):
''' '''
Delete a registry value entry or the default value for a key. Delete a registry value entry or the default value for a key.