From 78a2b91b9d2e9d3737f822150ed17e66c2500d26 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Wed, 3 Nov 2021 16:46:29 -0400 Subject: [PATCH] [O] Optimize imports --- collect/twitter.py | 6 +----- collect/twitter_individual.py | 6 ------ collect/utils.py | 1 - 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/collect/twitter.py b/collect/twitter.py index 531a86a..d51f41e 100644 --- a/collect/twitter.py +++ b/collect/twitter.py @@ -1,15 +1,11 @@ -import json from dataclasses import dataclass from datetime import datetime from typing import Union -import demjson as demjson -import json5 import tweepy from tweepy import API -from tweepy.models import Status -from collect.utils import Config, Posting, debug +from collect.utils import Config, debug @dataclass diff --git a/collect/twitter_individual.py b/collect/twitter_individual.py index bf2889a..c5c15c5 100644 --- a/collect/twitter_individual.py +++ b/collect/twitter_individual.py @@ -1,9 +1,3 @@ -import os - -import json5 -import tweepy -from tweepy.models import Status - from collect.twitter import tweepy_login, get_user_tweets from collect.utils import * diff --git a/collect/utils.py b/collect/utils.py index b91b270..1ffc855 100644 --- a/collect/utils.py +++ b/collect/utils.py @@ -2,7 +2,6 @@ import os from dataclasses import dataclass import json5 -import tweepy @dataclass