kitty/kittens/diff
Luflosi 2b095f720e
Use "with suppress()" to suppress python exceptions
Using
```Python
with suppress(OSError):
    os.remove('somefile.tmp')
```
instead of
```Python
try:
    os.remove('somefile.tmp')
except OSError:
    pass
```
makes the code more compact and more readable IMO.

This pattern was recommended by Raymond Hettinger, a Python Core
Developer in his talk "Transforming Code into Beautiful, Idiomatic Python" at https://www.youtube.com/watch?v=OSGv2VnC0go. The transcript is available at https://github.com/JeffPaine/beautiful_idiomatic_python
2019-06-03 12:27:43 +02:00
..
__init__.py Start work on the diff kitten 2018-04-17 17:43:56 +05:30
collect.py Use "with suppress()" to suppress python exceptions 2019-06-03 12:27:43 +02:00
config.py Use python3 shebang for all python scripts 2019-05-20 14:44:24 +02:00
config_data.py Use python3 shebang for all python scripts 2019-05-20 14:44:24 +02:00
highlight.py Use python3 shebang for all python scripts 2019-05-20 14:44:24 +02:00
main.py Use "with suppress()" to suppress python exceptions 2019-06-03 12:27:43 +02:00
patch.py Use python3 shebang for all python scripts 2019-05-20 14:44:24 +02:00
README.asciidoc Redirect old asciidoc pages to new website 2018-05-30 12:52:59 +05:30
render.py Use python3 shebang for all python scripts 2019-05-20 14:44:24 +02:00
search.py Use python3 shebang for all python scripts 2019-05-20 14:44:24 +02:00
speedup.c diff kitten has working syntax highlighting 2018-05-08 14:48:01 +05:30

See https://sw.kovidgoyal.net/kitty/kittens/diff.html