Skip to content

Commit

Permalink
Don't use fstrings to keep support with python<3.7
Browse files Browse the repository at this point in the history
fixes #131
  • Loading branch information
ihabunek committed Sep 23, 2019
1 parent cf78cd2 commit d595cc5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion toot/tui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __init__(self, app, user):
self.text = urwid.Text("")
self.cols = urwid.Columns([
("pack", urwid.Text(('header_bold', 'toot'))),
("pack", urwid.Text(('header', f' | {user.username}@{app.instance}'))),
("pack", urwid.Text(('header', ' | {}@{}'.format(user.username, app.instance)))),
("pack", self.text),
])

Expand Down
4 changes: 2 additions & 2 deletions toot/tui/compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ def __init__(self, in_reply_to=None):
self.in_reply_to = in_reply_to
text, edit_pos = '', None
if in_reply_to is not None:
text = f'@{in_reply_to.account} '
text = '@{} '.format(in_reply_to.account)
edit_pos = len(text)
mentions = [f'@{m["acct"]}' for m in in_reply_to.mentions]
mentions = ['@{}'.format(m["acct"]) for m in in_reply_to.mentions]
if mentions:
text += '\n\n{}'.format(' '.join(mentions))
self.content_edit = EditBox(edit_text=text, edit_pos=edit_pos,
Expand Down

0 comments on commit d595cc5

Please sign in to comment.