Remove unused imports

(thanks eijebong)
This commit is contained in:
mathieui 2014-04-04 00:24:16 +02:00
parent b6d6070751
commit ca0950db07
21 changed files with 11 additions and 34 deletions

View file

@ -68,9 +68,8 @@ Example of the syntax:
from plugin import BasePlugin
import common
from common import shell_split
from functools import partial, wraps
class Plugin(BasePlugin):
def init(self):

View file

@ -36,9 +36,7 @@ Usage
"""
from plugin import BasePlugin
import os
import common
import shlex
import subprocess
class Plugin(BasePlugin):

View file

@ -25,7 +25,6 @@ Command
from plugin import BasePlugin
from roster import roster
from common import safeJID
import common
import tabs
import time

View file

@ -12,7 +12,6 @@ automatically be changed to something random, for example: ::
"""
from plugin import BasePlugin
from tabs import MucTab
from random import choice
class Plugin(BasePlugin):

View file

@ -17,7 +17,6 @@ Just use the word in a message. It will be replaced automatically.
"""
from plugin import BasePlugin
import tabs
import re
class Plugin(BasePlugin):

View file

@ -12,7 +12,6 @@ Command
Retrieve the uptime of the server of ``jid``.
"""
from plugin import BasePlugin
import tabs
from common import parse_secs_to_str, safeJID
from sleekxmpp.xmlstream import ET

View file

@ -4,7 +4,7 @@ try:
except ImportError:
from distutils.core import setup, Extension
import os, sys
import os
module_poopt = Extension('poezio.poopt',
extra_compile_args=['-Wno-declaration-after-statement'],

View file

@ -8,7 +8,6 @@ bookmark storage. It can also parse xml Elements.
This module also defines several functions for retrieving and updating
bookmarks, both local and remote.
"""
import os
import logging
from sys import version_info

View file

@ -12,12 +12,9 @@ from/to the config file
DEFSECTION = "Poezio"
from gettext import gettext as _
import sys
import tempfile
import os
import logging
import os
import sys
from configparser import RawConfigParser, NoOptionError, NoSectionError
from os import environ, makedirs, path, remove

View file

@ -12,15 +12,11 @@ Defines the Connection class
import logging
log = logging.getLogger(__name__)
from gettext import (bindtextdomain, textdomain, bind_textdomain_codeset,
gettext as _)
import getpass
import sys
import sleekxmpp
from config import config, options
from logger import logger
import common
from common import safeJID

View file

@ -13,7 +13,6 @@ the roster.
import logging
log = logging.getLogger(__name__)
from sleekxmpp import JID
from common import safeJID
from collections import defaultdict

View file

@ -7,10 +7,10 @@
from gettext import gettext as _
import curses
import os
import sys
import time
import curses
import pipes
import ssl
@ -27,7 +27,7 @@ import logging
import singleton
import collections
from sleekxmpp import JID, InvalidJID
from sleekxmpp import InvalidJID
from common import safeJID
from sleekxmpp.xmlstream.stanzabase import StanzaBase
from sleekxmpp.xmlstream.handler import Callback

View file

@ -11,7 +11,6 @@ Defines the data-forms Tab and all the Windows for it.
import logging
log = logging.getLogger(__name__)
import curses
from windows import g_lock
import windows

View file

@ -8,7 +8,7 @@
import mmap
import os
import re
from os import environ, makedirs
from os import makedirs
from datetime import datetime
import common

View file

@ -8,7 +8,6 @@ plugin env.
import imp
import os
from os import path
import sys
import logging
from gettext import gettext as _
from sys import version_info

View file

@ -19,7 +19,6 @@ import logging.config
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
from config import options
from logger import logger
import singleton
import core

View file

@ -20,7 +20,7 @@ import atom_parser
from config import config
from datetime import datetime
from sleekxmpp.xmlstream import ElementBase, ET
from sleekxmpp.xmlstream import ET
ATOM_XMLNS = "http://www.w3.org/2005/Atom"

View file

@ -33,7 +33,7 @@ from common import safeJID
from config import config
from decorators import refresh_wrapper
from logger import logger
from text_buffer import TextBuffer, CorrectionError
from text_buffer import TextBuffer
from theming import get_theme

View file

@ -15,7 +15,7 @@ log = logging.getLogger(__name__)
import curses
import os
import random
from datetime import datetime, timedelta
from datetime import datetime
from . import ChatTab, Tab

View file

@ -19,7 +19,6 @@ import curses
from . import ChatTab, MucTab, Tab
import common
import fixes
import windows
import xhtml

View file

@ -12,8 +12,6 @@ the text window, the roster window, etc.
A Tab (see tab.py) is composed of multiple Windows
"""
from gettext import (bindtextdomain, textdomain, bind_textdomain_codeset,
gettext as _)
import logging
log = logging.getLogger(__name__)
@ -30,7 +28,6 @@ from contact import Contact, Resource
from roster import RosterGroup
import poopt
from sleekxmpp import JID
from common import safeJID
import common
@ -38,7 +35,7 @@ import core
import singleton
import collections
from theming import get_theme, to_curses_attr, read_tuple, dump_tuple
from theming import get_theme, to_curses_attr, read_tuple
FORMAT_CHAR = '\x19'
# These are non-printable chars, so they should never appear in the input, I