@@ -135,12 +135,6 @@ def _get_cmd_template_inputs_outputs(
135
135
]
136
136
return command_template
137
137
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
-
144
138
def _prepare_artifact_input (self , task_input , task_key , input_volume , multiple ):
145
139
outputs = self ._db .list (
146
140
schemas .Type .OutputAsset ,
@@ -156,21 +150,15 @@ def _prepare_artifact_input(self, task_input, task_key, input_volume, multiple):
156
150
assert output .kind == schemas .AssetKind .model , "The task_input value must be an artifact, not a performance"
157
151
filename = _generate_filename ()
158
152
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 )
163
154
164
155
return TaskResource (id = task_input .identifier , value = f"{ TPL_VOLUME_INPUTS } /{ filename } " , multiple = multiple )
165
156
166
157
def _prepare_dataset_input (
167
158
self , dataset : models .Dataset , task_input : models .InputRef , input_volume : str , multiple : bool
168
159
):
169
160
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 )
174
162
return TaskResource (
175
163
id = task_input .identifier ,
176
164
value = f"{ TPL_VOLUME_INPUTS } /{ Filenames .OPENER .value } " ,
0 commit comments