mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-25 02:17:03 +00:00
...
This commit is contained in:
parent
3c77229f61
commit
d7ab96856c
1 changed files with 1 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ failed, the command will exit with a success code.
|
|||
ret['data'] = '-'
|
||||
return ret
|
||||
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]:
|
||||
with open(path, 'rb') as f:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue