File tree Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Original file line number Diff line number Diff line change 11from .cloudstoragemapping import CloudMapping
22
33
4- def _parse_cloud_mapping_kwargs (kwargs ):
5- cloud_mapping_kwargs = {}
6-
7- try :
8- cloud_mapping_kwargs ["sync_initially" ] = kwargs .pop ("sync_initially" )
9- except KeyError :
10- pass
11- try :
12- cloud_mapping_kwargs ["read_blindly" ] = kwargs .pop ("read_blindly" )
13- except KeyError :
14- pass
15-
4+ def _parse_cloud_mapping_kwargs (kwargs : dict ):
5+ cloud_mapping_kwargs = dict (
6+ sync_initially = kwargs .pop ("sync_initially" , True ),
7+ read_blindly = kwargs .pop ("read_blindly" , False ),
8+ read_blindly_default = kwargs .pop ("read_blindly_default" , None ),
9+ ordered_dumps_funcs = kwargs .pop ("ordered_dumps_funcs" , None ),
10+ ordered_loads_funcs = kwargs .pop ("ordered_loads_funcs" , None ),
11+ )
1612 return cloud_mapping_kwargs , kwargs
1713
1814
You can’t perform that action at this time.
0 commit comments