[tor-commits] [gettor/master] Removed unused imports

cohosh at torproject.org cohosh at torproject.org
Thu Feb 13 20:01:09 UTC 2020


commit 40589f08d69c392b0f4e9649995fdc1157d24997
Author: Cecylia Bocovich <cohosh at torproject.org>
Date:   Fri Feb 7 17:07:11 2020 -0500

    Removed unused imports
---
 gettor/parse/email.py                | 2 --
 gettor/parse/twitter.py              | 1 -
 gettor/services/email/sendmail.py    | 3 ---
 gettor/services/twitter/twitterdm.py | 1 -
 gettor/utils/blacklist.py            | 2 --
 gettor/utils/commons.py              | 1 -
 gettor/utils/options.py              | 2 --
 gettor/utils/settings.py             | 4 ----
 gettor/utils/strings.py              | 1 -
 gettor/web/http.py                   | 1 -
 10 files changed, 18 deletions(-)

diff --git a/gettor/parse/email.py b/gettor/parse/email.py
index 874b1cd..9084cb7 100644
--- a/gettor/parse/email.py
+++ b/gettor/parse/email.py
@@ -24,10 +24,8 @@ from email.utils import parseaddr
 
 from twisted.python import log
 from twisted.internet import defer
-from twisted.enterprise import adbapi
 
 from ..utils.db import SQLite3
-from ..utils import strings
 from ..utils import validate_email
 
 class AddressError(Exception):
diff --git a/gettor/parse/twitter.py b/gettor/parse/twitter.py
index 4f3ee9f..645bf47 100644
--- a/gettor/parse/twitter.py
+++ b/gettor/parse/twitter.py
@@ -21,7 +21,6 @@ import configparser
 
 from twisted.python import log
 from twisted.internet import defer
-from twisted.enterprise import adbapi
 
 from ..utils.db import SQLite3
 from ..utils import strings
diff --git a/gettor/services/email/sendmail.py b/gettor/services/email/sendmail.py
index 3f4cfed..9d97567 100644
--- a/gettor/services/email/sendmail.py
+++ b/gettor/services/email/sendmail.py
@@ -12,12 +12,9 @@
 
 from __future__ import absolute_import
 
-import gettext
 import hashlib
 
 import configparser
-from email import encoders
-from email import mime
 from email.mime.text import MIMEText
 
 from twisted.internet import defer
diff --git a/gettor/services/twitter/twitterdm.py b/gettor/services/twitter/twitterdm.py
index 629fa5f..5f143ca 100644
--- a/gettor/services/twitter/twitterdm.py
+++ b/gettor/services/twitter/twitterdm.py
@@ -12,7 +12,6 @@
 
 from __future__ import absolute_import
 
-import gettext
 import hashlib
 import json
 import time
diff --git a/gettor/utils/blacklist.py b/gettor/utils/blacklist.py
index 0223fc3..06ba55d 100644
--- a/gettor/utils/blacklist.py
+++ b/gettor/utils/blacklist.py
@@ -11,9 +11,7 @@
 # :license: This is Free Software. See LICENSE for license information.
 
 import os
-import time
 import logging
-import sqlite3
 import datetime
 import configparser
 
diff --git a/gettor/utils/commons.py b/gettor/utils/commons.py
index 212c4bb..b769efc 100644
--- a/gettor/utils/commons.py
+++ b/gettor/utils/commons.py
@@ -11,7 +11,6 @@
 # :license: This is Free Software. See LICENSE for license information.
 
 from twisted.logger import Logger
-from twisted.enterprise import adbapi
 from twisted.application import internet
 
 # Define an application logger
diff --git a/gettor/utils/options.py b/gettor/utils/options.py
index 6f8d693..0f3d4af 100644
--- a/gettor/utils/options.py
+++ b/gettor/utils/options.py
@@ -9,8 +9,6 @@ the Tor Browser.
 :license: see included LICENSE for information
 """
 
-import argparse
-
 from .settings import Settings
 from . import strings
 
diff --git a/gettor/utils/settings.py b/gettor/utils/settings.py
index 4583b6a..68f2145 100644
--- a/gettor/utils/settings.py
+++ b/gettor/utils/settings.py
@@ -12,10 +12,6 @@ the Tor Browser.
 
 import json
 import os
-import platform
-import locale
-
-from twisted.python import log
 
 from . import strings
 
diff --git a/gettor/utils/strings.py b/gettor/utils/strings.py
index 1538fe4..2471ef5 100644
--- a/gettor/utils/strings.py
+++ b/gettor/utils/strings.py
@@ -11,7 +11,6 @@ the Tor Browser.
 """
 
 import json
-import locale
 import os
 import inspect
 
diff --git a/gettor/web/http.py b/gettor/web/http.py
index 067aef8..2801db0 100644
--- a/gettor/web/http.py
+++ b/gettor/web/http.py
@@ -20,7 +20,6 @@ import configparser
 from time import gmtime, strftime
 
 import core
-import utils
 
 """
 GetTor RESTful API





More information about the tor-commits mailing list