summaryrefslogtreecommitdiff
path: root/examples/spectrogram.py
diff options
context:
space:
mode:
authorLev Vereshchagin <mail@vrslev.com>2022-04-06 09:39:05 +0300
committerLev Vereshchagin <mail@vrslev.com>2022-04-06 09:39:05 +0300
commitb7962d7c8be1a7d39280c84fc8d394571e698dd0 (patch)
tree1dd2a205b23580147f527338743e787806336115 /examples/spectrogram.py
parent8b10b8f6127e18efaa443ff79e90636ceef32750 (diff)
Run `pyupgrade` on codebase
https://github.com/asottile/pyupgrade `pyupgrade --py37-plus`
Diffstat (limited to 'examples/spectrogram.py')
-rwxr-xr-xexamples/spectrogram.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/spectrogram.py b/examples/spectrogram.py
index c9ce94e..0ad6a34 100755
--- a/examples/spectrogram.py
+++ b/examples/spectrogram.py
@@ -66,7 +66,7 @@ for bg, fg in zip(colors, colors[1:]):
if char == '\t':
bg, fg = fg, bg
else:
- gradient.append('\x1b[{};{}m{}'.format(fg, bg + 10, char))
+ gradient.append(f'\x1b[{fg};{bg + 10}m{char}')
try:
samplerate = sd.query_devices(args.device, 'input')['default_samplerate']