Fix problem with string formatting - toot - Unnamed repository; edit this file 'description' to name the repository.
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 729498559d6b986793aefdbe499424762645cf1b
(DIR) parent 209b3f5403ce44e1b500ae3b11a8c6ee0f70052a
(HTM) Author: Ivan Habunek <ivan@habunek.com>
Date: Tue, 14 Nov 2017 08:23:10 +0100
Fix problem with string formatting
%d would fail if given a string
Diffstat:
toot/api.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/toot/api.py b/toot/api.py
@@ -99,7 +99,7 @@ def _post(app, user, url, data=None, files=None):
def _account_action(app, user, account, action):
- url = '/api/v1/accounts/%d/%s' % (account, action)
+ url = '/api/v1/accounts/{}/{}'.format(account, action)
return _post(app, user, url).json()