File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 25
25
from securesystemslib .storage import FilesystemBackend , StorageBackendInterface
26
26
from securesystemslib .util import persist_temp_file
27
27
28
- from tuf import exceptions , formats
28
+ from tuf import exceptions
29
29
from tuf .api .serialization import (
30
30
MetadataDeserializer ,
31
31
MetadataSerializer ,
@@ -384,7 +384,7 @@ def _common_fields_from_dict(
384
384
# Convert 'expires' TUF metadata string to a datetime object, which is
385
385
# what the constructor expects and what we store. The inverse operation
386
386
# is implemented in '_common_fields_to_dict'.
387
- expires = formats . expiry_string_to_datetime (expires_str )
387
+ expires = datetime . strptime (expires_str , "%Y-%m-%dT%H:%M:%SZ" )
388
388
return version , spec_version , expires
389
389
390
390
def _common_fields_to_dict (self ) -> Dict [str , Any ]:
You can’t perform that action at this time.
0 commit comments