File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
volatility3/framework/interfaces Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 5353def path_join (* args ) -> str :
5454 """Joins configuration paths together."""
5555 # If a path element (particularly the first) is empty, then remove it from the list
56- args = tuple ([ arg for arg in args if arg ] )
56+ args = tuple (arg for arg in args if arg )
5757 return CONFIG_SEPARATOR .join (args )
5858
5959
@@ -772,8 +772,7 @@ def make_subconfig(
772772 str: The newly generated full configuration path
773773 """
774774 random_config_dict = "" .join (
775- random .SystemRandom ().choice (string .ascii_uppercase + string .digits )
776- for _ in range (8 )
775+ random .SystemRandom ().choices (string .ascii_uppercase + string .digits , k = 8 )
777776 )
778777 new_config_path = path_join (base_config_path , random_config_dict )
779778 # TODO: Check that the new_config_path is empty, although it's not critical if it's not since the values are merged in
You can’t perform that action at this time.
0 commit comments