@@ -135,12 +135,6 @@ def _get_cmd_template_inputs_outputs(
135135 ]
136136 return command_template
137137
138- def _tmp_is_three_nine (self ):
139- """Temporary helper function to remove as soon as support of Python 3.9 is dropped."""
140- import platform
141-
142- return platform .python_version_tuple ()[1 ] == "9"
143-
144138 def _prepare_artifact_input (self , task_input , task_key , input_volume , multiple ):
145139 outputs = self ._db .list (
146140 schemas .Type .OutputAsset ,
@@ -156,21 +150,15 @@ def _prepare_artifact_input(self, task_input, task_key, input_volume, multiple):
156150 assert output .kind == schemas .AssetKind .model , "The task_input value must be an artifact, not a performance"
157151 filename = _generate_filename ()
158152 path_to_input = input_volume / filename
159- if self ._tmp_is_three_nine ():
160- Path (output .asset .address .storage_address ).link_to (path_to_input )
161- else :
162- Path (path_to_input ).hardlink_to (output .asset .address .storage_address )
153+ Path (path_to_input ).hardlink_to (output .asset .address .storage_address )
163154
164155 return TaskResource (id = task_input .identifier , value = f"{ TPL_VOLUME_INPUTS } /{ filename } " , multiple = multiple )
165156
166157 def _prepare_dataset_input (
167158 self , dataset : models .Dataset , task_input : models .InputRef , input_volume : str , multiple : bool
168159 ):
169160 path_to_opener = input_volume / Filenames .OPENER .value
170- if self ._tmp_is_three_nine ():
171- Path (dataset .opener .storage_address ).link_to (path_to_opener )
172- else :
173- Path (path_to_opener ).hardlink_to (dataset .opener .storage_address )
161+ Path (path_to_opener ).hardlink_to (dataset .opener .storage_address )
174162 return TaskResource (
175163 id = task_input .identifier ,
176164 value = f"{ TPL_VOLUME_INPUTS } /{ Filenames .OPENER .value } " ,
0 commit comments