mirror of
https://github.com/altlinux/gpupdate.git
synced 2025-03-10 08:58:25 +03:00
Fixed interpretation of boolean values
This commit is contained in:
parent
67a02a4623
commit
408d221c3d
@ -116,7 +116,7 @@ def create_dict(firefox_keys, registry_branch, excp=list()):
|
|||||||
'''
|
'''
|
||||||
Collect dictionaries from registry keys into a general dictionary
|
Collect dictionaries from registry keys into a general dictionary
|
||||||
'''
|
'''
|
||||||
get_boolean = lambda data: data in ['0', 'false', None, 'none', 0] if isinstance(data, (str, int)) else False
|
get_boolean = lambda data: data in ['1', 'true', 'True', True, 1] if isinstance(data, (str, int)) else False
|
||||||
get_parts = lambda hivekey, registry: hivekey.replace(registry, '').split('/')
|
get_parts = lambda hivekey, registry: hivekey.replace(registry, '').split('/')
|
||||||
counts = dict()
|
counts = dict()
|
||||||
for it_data in firefox_keys:
|
for it_data in firefox_keys:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user