Imports cleanup
This commit is contained in:
parent
a3407467c2
commit
409b89d9df
3
msgs.py
3
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/)"
|
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: "
|
failedToScanExtra = "\n\nTwitter gave me this error: "
|
||||||
tweetNotFound="Tweet not found."
|
tweetNotFound="Tweet not found."
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import os
|
import os
|
||||||
from wsgiref import headers
|
|
||||||
os.environ["RUNNING_TESTS"]="1"
|
os.environ["RUNNING_TESTS"]="1"
|
||||||
|
|
||||||
import twitfix,twExtract
|
import twitfix,twExtract
|
||||||
|
@ -1,10 +1,7 @@
|
|||||||
from email import utils
|
|
||||||
from random import Random, random
|
|
||||||
from weakref import finalize
|
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 import Flask, render_template, request, redirect, abort, Response, send_from_directory, url_for, send_file, make_response, jsonify
|
||||||
from flask_cors import CORS
|
from flask_cors import CORS
|
||||||
import textwrap
|
import textwrap
|
||||||
import requests
|
|
||||||
import re
|
import re
|
||||||
import os
|
import os
|
||||||
import urllib.parse
|
import urllib.parse
|
||||||
@ -16,7 +13,6 @@ import msgs
|
|||||||
import twExtract as twExtract
|
import twExtract as twExtract
|
||||||
from configHandler import config
|
from configHandler import config
|
||||||
from cache import addVnfToLinkCache,getVnfFromLinkCache
|
from cache import addVnfToLinkCache,getVnfFromLinkCache
|
||||||
import random
|
|
||||||
from yt_dlp.utils import ExtractorError
|
from yt_dlp.utils import ExtractorError
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
CORS(app)
|
CORS(app)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user