mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
fix lint
This commit is contained in:
parent
3a5ffff90f
commit
4e2351bca5
@ -119,7 +119,6 @@ def _mbcs_to_unicode_wrap(obj, vtype):
|
||||
return _mbcs_to_unicode(obj)
|
||||
|
||||
|
||||
|
||||
class Registry(object): # pylint: disable=R0903
|
||||
'''
|
||||
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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
def set_value(hive,
|
||||
key,
|
||||
vname=None,
|
||||
@ -605,7 +599,7 @@ def set_value(hive,
|
||||
local_vname = _mbcs_to_unicode(vname)
|
||||
local_vtype = _mbcs_to_unicode(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)
|
||||
return False
|
||||
else:
|
||||
@ -737,7 +731,6 @@ def delete_key_recursive(hive, key, use_32bit_registry=False):
|
||||
return ret
|
||||
|
||||
|
||||
|
||||
def delete_value(hive, key, vname=None, use_32bit_registry=False):
|
||||
'''
|
||||
Delete a registry value entry or the default value for a key.
|
||||
|
Loading…
Reference in New Issue
Block a user