mirror of
https://github.com/altlinux/gpupdate.git
synced 2024-10-26 12:55:04 +03:00
Fixed string processing in date
This commit is contained in:
parent
ea2854bec0
commit
0f4f9fbae8
@ -87,6 +87,8 @@ class firefox_applier(applier_frontend):
|
||||
if json_data:
|
||||
it_data.data = json_data
|
||||
it_data.type = 7
|
||||
else:
|
||||
it_data.data = clean_data_firefox(it_data.data)
|
||||
#Cases when it is necessary to create nested dictionaries
|
||||
if it_data.valuename != it_data.data:
|
||||
parts = self.get_parts(it_data.hive_key)
|
||||
@ -180,3 +182,6 @@ def dict_item_to_list(dictionary:dict) -> dict:
|
||||
else:
|
||||
dict_item_to_list(dictionary[key])
|
||||
return dictionary
|
||||
|
||||
def clean_data_firefox(data):
|
||||
return data.replace("'", '\"')
|
||||
|
Loading…
Reference in New Issue
Block a user