mirror of
https://github.com/isjerryxiao/pacroller.git
synced 2024-12-24 23:29:24 +08:00
fix crash on python upgrade due to lazy import
This commit is contained in:
parent
f44f86e124
commit
166d0fced2
1 changed files with 1 additions and 0 deletions
|
@ -135,6 +135,7 @@ def pacman_time_to_timestamp(stime: str) -> int:
|
|||
''' the format pacman is using seems to be not iso compatible '''
|
||||
dt = datetime.strptime(stime, "%Y-%m-%dT%H:%M:%S%z")
|
||||
return mktime(dt.astimezone().timetuple())
|
||||
pacman_time_to_timestamp('2024-01-01T00:00:00+0000')
|
||||
|
||||
def back_readline(fp: BinaryIO) -> Iterator[str]:
|
||||
pos = fp.seek(0, 2)
|
||||
|
|
Loading…
Reference in a new issue