fixed imports

This commit is contained in:
Lynne Megido 2018-10-27 23:29:49 +10:00
parent 5f77734162
commit 62ccd3a529
Signed by: lynnesbian
GPG key ID: FB7B970303ACE499

View file

@ -6,12 +6,12 @@
# You can obtain one at http://mozilla.org/MPL/2.0/. # You can obtain one at http://mozilla.org/MPL/2.0/.
import requests import requests
from mastodon import Mastodon import mastodon
import json import json
cfg = json.load(open('config.json', 'r')) cfg = json.load(open('config.json', 'r'))
client = Mastodon( client = mastodon.Mastodon(
client_id=cfg['client']['id'], client_id=cfg['client']['id'],
client_secret = cfg['client']['secret'], client_secret = cfg['client']['secret'],
access_token=cfg['secret'], access_token=cfg['secret'],