mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 02:31:45 +02:00
...
This commit is contained in:
@@ -82,7 +82,7 @@ failed, the command will exit with a success code.
|
|||||||
ret['data'] = '-'
|
ret['data'] = '-'
|
||||||
return ret
|
return ret
|
||||||
if imghdr.what(path) != 'png':
|
if imghdr.what(path) != 'png':
|
||||||
self.fatal('{} is not a PNG image'.format(path))
|
self.fatal(f'{path} is not a PNG image')
|
||||||
|
|
||||||
def file_pipe(path: str) -> Generator[Dict, None, None]:
|
def file_pipe(path: str) -> Generator[Dict, None, None]:
|
||||||
with open(path, 'rb') as f:
|
with open(path, 'rb') as f:
|
||||||
|
|||||||
Reference in New Issue
Block a user