Skip to content

Commit

Permalink
oci: serialization: Fix import.
Browse files Browse the repository at this point in the history
  • Loading branch information
fishinthecalculator committed Apr 2, 2024
1 parent a4b000e commit 0b85c08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pot/oci/serialization/utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import datetime
from datetime import datetime

from pot.oci.serialization import DATETIME_FORMAT_STRING


def parse_list_of_strings(string: str | list[str], separator=" ") -> list[str]:
if string:
if type(string) is list:
Expand All @@ -11,5 +12,6 @@ def parse_list_of_strings(string: str | list[str], separator=" ") -> list[str]:
else:
return []


def parse_datetime(dtime: str) -> datetime:
return datetime.strptime(dtime, DATETIME_FORMAT_STRING)

0 comments on commit 0b85c08

Please sign in to comment.