Commit ca0950db authored by mathieui's avatar mathieui

Remove unused imports

(thanks eijebong)
parent b6d60707
...@@ -68,9 +68,8 @@ Example of the syntax: ...@@ -68,9 +68,8 @@ Example of the syntax:
from plugin import BasePlugin from plugin import BasePlugin
import common
from common import shell_split from common import shell_split
from functools import partial, wraps
class Plugin(BasePlugin): class Plugin(BasePlugin):
def init(self): def init(self):
......
...@@ -36,9 +36,7 @@ Usage ...@@ -36,9 +36,7 @@ Usage
""" """
from plugin import BasePlugin from plugin import BasePlugin
import os
import common import common
import shlex
import subprocess import subprocess
class Plugin(BasePlugin): class Plugin(BasePlugin):
......
...@@ -25,7 +25,6 @@ Command ...@@ -25,7 +25,6 @@ Command
from plugin import BasePlugin from plugin import BasePlugin
from roster import roster from roster import roster
from common import safeJID from common import safeJID
import common
import tabs import tabs
import time import time
......
...@@ -12,7 +12,6 @@ automatically be changed to something random, for example: :: ...@@ -12,7 +12,6 @@ automatically be changed to something random, for example: ::
""" """
from plugin import BasePlugin from plugin import BasePlugin
from tabs import MucTab
from random import choice from random import choice
class Plugin(BasePlugin): class Plugin(BasePlugin):
......
...@@ -17,7 +17,6 @@ Just use the word in a message. It will be replaced automatically. ...@@ -17,7 +17,6 @@ Just use the word in a message. It will be replaced automatically.
""" """
from plugin import BasePlugin from plugin import BasePlugin
import tabs
import re import re
class Plugin(BasePlugin): class Plugin(BasePlugin):
......
...@@ -12,7 +12,6 @@ Command ...@@ -12,7 +12,6 @@ Command
Retrieve the uptime of the server of ``jid``. Retrieve the uptime of the server of ``jid``.
""" """
from plugin import BasePlugin from plugin import BasePlugin
import tabs
from common import parse_secs_to_str, safeJID from common import parse_secs_to_str, safeJID
from sleekxmpp.xmlstream import ET from sleekxmpp.xmlstream import ET
......
...@@ -4,7 +4,7 @@ try: ...@@ -4,7 +4,7 @@ try:
except ImportError: except ImportError:
from distutils.core import setup, Extension from distutils.core import setup, Extension
import os, sys import os
module_poopt = Extension('poezio.poopt', module_poopt = Extension('poezio.poopt',
extra_compile_args=['-Wno-declaration-after-statement'], extra_compile_args=['-Wno-declaration-after-statement'],
......
...@@ -8,7 +8,6 @@ bookmark storage. It can also parse xml Elements. ...@@ -8,7 +8,6 @@ bookmark storage. It can also parse xml Elements.
This module also defines several functions for retrieving and updating This module also defines several functions for retrieving and updating
bookmarks, both local and remote. bookmarks, both local and remote.
""" """
import os
import logging import logging
from sys import version_info from sys import version_info
......
...@@ -12,12 +12,9 @@ from/to the config file ...@@ -12,12 +12,9 @@ from/to the config file
DEFSECTION = "Poezio" DEFSECTION = "Poezio"
from gettext import gettext as _
import sys
import tempfile
import os
import logging import logging
import os
import sys
from configparser import RawConfigParser, NoOptionError, NoSectionError from configparser import RawConfigParser, NoOptionError, NoSectionError
from os import environ, makedirs, path, remove from os import environ, makedirs, path, remove
......
...@@ -12,15 +12,11 @@ Defines the Connection class ...@@ -12,15 +12,11 @@ Defines the Connection class
import logging import logging
log = logging.getLogger(__name__) log = logging.getLogger(__name__)
from gettext import (bindtextdomain, textdomain, bind_textdomain_codeset,
gettext as _)
import getpass import getpass
import sys
import sleekxmpp import sleekxmpp
from config import config, options from config import config, options
from logger import logger
import common import common
from common import safeJID from common import safeJID
......
...@@ -13,7 +13,6 @@ the roster. ...@@ -13,7 +13,6 @@ the roster.
import logging import logging
log = logging.getLogger(__name__) log = logging.getLogger(__name__)
from sleekxmpp import JID
from common import safeJID from common import safeJID
from collections import defaultdict from collections import defaultdict
......
...@@ -7,10 +7,10 @@ ...@@ -7,10 +7,10 @@
from gettext import gettext as _ from gettext import gettext as _
import curses
import os import os
import sys import sys
import time import time
import curses
import pipes import pipes
import ssl import ssl
...@@ -27,7 +27,7 @@ import logging ...@@ -27,7 +27,7 @@ import logging
import singleton import singleton
import collections import collections
from sleekxmpp import JID, InvalidJID from sleekxmpp import InvalidJID
from common import safeJID from common import safeJID
from sleekxmpp.xmlstream.stanzabase import StanzaBase from sleekxmpp.xmlstream.stanzabase import StanzaBase
from sleekxmpp.xmlstream.handler import Callback from sleekxmpp.xmlstream.handler import Callback
......
...@@ -11,7 +11,6 @@ Defines the data-forms Tab and all the Windows for it. ...@@ -11,7 +11,6 @@ Defines the data-forms Tab and all the Windows for it.
import logging import logging
log = logging.getLogger(__name__) log = logging.getLogger(__name__)
import curses
from windows import g_lock from windows import g_lock
import windows import windows
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
import mmap import mmap
import os import os
import re import re
from os import environ, makedirs from os import makedirs
from datetime import datetime from datetime import datetime
import common import common
......
...@@ -8,7 +8,6 @@ plugin env. ...@@ -8,7 +8,6 @@ plugin env.
import imp import imp
import os import os
from os import path from os import path
import sys
import logging import logging
from gettext import gettext as _ from gettext import gettext as _
from sys import version_info from sys import version_info
......
...@@ -19,7 +19,6 @@ import logging.config ...@@ -19,7 +19,6 @@ import logging.config
sys.path.append(os.path.dirname(os.path.abspath(__file__))) sys.path.append(os.path.dirname(os.path.abspath(__file__)))
from config import options from config import options
from logger import logger
import singleton import singleton
import core import core
......
...@@ -20,7 +20,7 @@ import atom_parser ...@@ -20,7 +20,7 @@ import atom_parser
from config import config from config import config
from datetime import datetime from datetime import datetime
from sleekxmpp.xmlstream import ElementBase, ET from sleekxmpp.xmlstream import ET
ATOM_XMLNS = "http://www.w3.org/2005/Atom" ATOM_XMLNS = "http://www.w3.org/2005/Atom"
......
...@@ -33,7 +33,7 @@ from common import safeJID ...@@ -33,7 +33,7 @@ from common import safeJID
from config import config from config import config
from decorators import refresh_wrapper from decorators import refresh_wrapper
from logger import logger from logger import logger
from text_buffer import TextBuffer, CorrectionError from text_buffer import TextBuffer
from theming import get_theme from theming import get_theme
......
...@@ -15,7 +15,7 @@ log = logging.getLogger(__name__) ...@@ -15,7 +15,7 @@ log = logging.getLogger(__name__)
import curses import curses
import os import os
import random import random
from datetime import datetime, timedelta from datetime import datetime
from . import ChatTab, Tab from . import ChatTab, Tab
......
...@@ -19,7 +19,6 @@ import curses ...@@ -19,7 +19,6 @@ import curses
from . import ChatTab, MucTab, Tab from . import ChatTab, MucTab, Tab
import common
import fixes import fixes
import windows import windows
import xhtml import xhtml
......
...@@ -12,8 +12,6 @@ the text window, the roster window, etc. ...@@ -12,8 +12,6 @@ the text window, the roster window, etc.
A Tab (see tab.py) is composed of multiple Windows A Tab (see tab.py) is composed of multiple Windows
""" """
from gettext import (bindtextdomain, textdomain, bind_textdomain_codeset,
gettext as _)
import logging import logging
log = logging.getLogger(__name__) log = logging.getLogger(__name__)
...@@ -30,7 +28,6 @@ from contact import Contact, Resource ...@@ -30,7 +28,6 @@ from contact import Contact, Resource
from roster import RosterGroup from roster import RosterGroup
import poopt import poopt
from sleekxmpp import JID
from common import safeJID from common import safeJID
import common import common
...@@ -38,7 +35,7 @@ import core ...@@ -38,7 +35,7 @@ import core
import singleton import singleton
import collections 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' FORMAT_CHAR = '\x19'
# These are non-printable chars, so they should never appear in the input, I # These are non-printable chars, so they should never appear in the input, I
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment