From 409b89d9df79fac73b61ad8078652606ef5d6bb7 Mon Sep 17 00:00:00 2001 From: Dylan Date: Thu, 6 Oct 2022 02:07:00 +0100 Subject: [PATCH] Imports cleanup --- msgs.py | 3 --- test_vx.py | 1 - twitfix.py | 4 ---- 3 files changed, 8 deletions(-) diff --git a/msgs.py b/msgs.py index e3d43da..2bd125d 100644 --- a/msgs.py +++ b/msgs.py @@ -1,6 +1,3 @@ -from asyncore import poll - - failedToScan="Failed to scan your link! This may be due to an incorrect link, private/suspended account, deleted tweet, or Twitter itself might be having issues (Check here: https://api.twitterstat.us/)" failedToScanExtra = "\n\nTwitter gave me this error: " tweetNotFound="Tweet not found." diff --git a/test_vx.py b/test_vx.py index 600fd71..5bfef9e 100644 --- a/test_vx.py +++ b/test_vx.py @@ -1,5 +1,4 @@ import os -from wsgiref import headers os.environ["RUNNING_TESTS"]="1" import twitfix,twExtract diff --git a/twitfix.py b/twitfix.py index c86ab4b..16ceef8 100644 --- a/twitfix.py +++ b/twitfix.py @@ -1,10 +1,7 @@ -from email import utils -from random import Random, random from weakref import finalize from flask import Flask, render_template, request, redirect, abort, Response, send_from_directory, url_for, send_file, make_response, jsonify from flask_cors import CORS import textwrap -import requests import re import os import urllib.parse @@ -16,7 +13,6 @@ import msgs import twExtract as twExtract from configHandler import config from cache import addVnfToLinkCache,getVnfFromLinkCache -import random from yt_dlp.utils import ExtractorError app = Flask(__name__) CORS(app)