Skip to content

Commit 7c5b3b9

Browse files
Tenzersebastinas
authored andcommitted
Format files with the latest version of black
1 parent 28fdceb commit 7c5b3b9

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

curtsies/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Terminal-formatted strings"""
2+
23
__version__ = "0.4.2"
34

45
from .window import FullscreenWindow, CursorAwareWindow

curtsies/curtsieskeys.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""All the key sequences"""
2+
23
# If you add a binding, add something about your setup
34
# if you can figure out why it's different
45

curtsies/events.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Events for keystrokes and other input events"""
2+
23
import codecs
34
import itertools
45
import sys

curtsies/formatstring.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,11 @@ def stable_format_dict(d: Mapping) -> str:
9393
Does not work for dicts with unicode strings as values."""
9494
inner = ", ".join(
9595
"{}: {}".format(
96-
repr(k)[1:]
97-
if repr(k).startswith("u'") or repr(k).startswith('u"')
98-
else repr(k),
96+
(
97+
repr(k)[1:]
98+
if repr(k).startswith("u'") or repr(k).startswith('u"')
99+
else repr(k)
100+
),
99101
v,
100102
)
101103
for k, v in sorted(d.items())

0 commit comments

Comments
 (0)