kitty/kitty_tests
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 Use python3 shebang for all python scripts 2019-05-20 14:44:24 +02:00
bench_scrollback.py Add scrollback benchmark 2018-09-22 19:10:37 +09:00
choose.py Use python3 shebang for all python scripts 2019-05-20 14:44:24 +02:00
datatypes.py Use python3 shebang for all python scripts 2019-05-20 14:44:24 +02:00
diff.py Use python3 shebang for all python scripts 2019-05-20 14:44:24 +02:00
FiraCode-Medium.otf Add a ligature shaping test 2017-11-11 20:55:53 +05:30
fonts.py Use python3 shebang for all python scripts 2019-05-20 14:44:24 +02:00
gr.py Use "with suppress()" to suppress python exceptions 2019-06-03 12:27:43 +02:00
graphics.py Use python3 shebang for all python scripts 2019-05-20 14:44:24 +02:00
hints.py Use python3 shebang for all python scripts 2019-05-20 14:44:24 +02:00
keys.py Use python3 shebang for all python scripts 2019-05-20 14:44:24 +02:00
layout.py Use python3 shebang for all python scripts 2019-05-20 14:44:24 +02:00
LiberationMono-Regular.ttf Use only cluster numbers and glyph sizes for grouping glyphs into cells 2017-11-12 23:43:21 +05:30
parser.py Use python3 shebang for all python scripts 2019-05-20 14:44:24 +02:00
screen.py Use python3 shebang for all python scripts 2019-05-20 14:44:24 +02:00
tui.py Use python3 shebang for all python scripts 2019-05-20 14:44:24 +02:00
unicode_input.py Use python3 shebang for all python scripts 2019-05-20 14:44:24 +02:00