Skip to content

Commit

Permalink
fix some formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewAnnex committed Aug 22, 2023
1 parent 86e8829 commit 0f43e79
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/spiceypy/spiceypy.py
Original file line number Diff line number Diff line change
Expand Up @@ -14506,12 +14506,9 @@ def datetime2et(dt: Union[Iterable[datetime], datetime]) -> Union[ndarray, float


if hasattr(datetime, "fromisoformat"):

def fromisoformat(s):
return datetime.fromisoformat(s + "+00:00")

else:

def fromisoformat(s):
return datetime.strptime(s, "%Y-%m-%dT%H:%M:%S.%f").replace(tzinfo=timezone.utc)

Expand Down

0 comments on commit 0f43e79

Please sign in to comment.