mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-30 13:24:19 +00:00
...
This commit is contained in:
parent
76d6820af9
commit
901a075a38
1 changed files with 2 additions and 2 deletions
|
|
@ -5,14 +5,14 @@
|
|||
import os
|
||||
from typing import Iterator
|
||||
|
||||
from .rsync import IO_BUFFER_SIZE, begin_signature, iter_job
|
||||
from .rsync import IO_BUFFER_SIZE, begin_create_signature, iter_job
|
||||
|
||||
|
||||
def signature_of_file(path: str) -> Iterator[bytes]:
|
||||
with open(path, 'rb') as f:
|
||||
f.seek(0, os.SEEK_END)
|
||||
fsz = f.tell()
|
||||
job = begin_signature(fsz)
|
||||
job = begin_create_signature(fsz)
|
||||
f.seek(0)
|
||||
finished = False
|
||||
while not finished:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue