Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
poezio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
178
Issues
178
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poezio
poezio
Commits
ca0950db
Commit
ca0950db
authored
Apr 04, 2014
by
mathieui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused imports
(thanks eijebong)
parent
b6d60707
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
11 additions
and
34 deletions
+11
-34
plugins/alias.py
plugins/alias.py
+1
-2
plugins/exec.py
plugins/exec.py
+0
-2
plugins/ping.py
plugins/ping.py
+0
-1
plugins/random_nick.py
plugins/random_nick.py
+0
-1
plugins/replace_word.py
plugins/replace_word.py
+0
-1
plugins/uptime.py
plugins/uptime.py
+0
-1
setup.py
setup.py
+1
-1
src/bookmark.py
src/bookmark.py
+0
-1
src/config.py
src/config.py
+2
-5
src/connection.py
src/connection.py
+0
-4
src/contact.py
src/contact.py
+0
-1
src/core.py
src/core.py
+2
-2
src/data_forms.py
src/data_forms.py
+0
-1
src/logger.py
src/logger.py
+1
-1
src/plugin_manager.py
src/plugin_manager.py
+0
-1
src/poezio.py
src/poezio.py
+0
-1
src/pubsub.py
src/pubsub.py
+1
-1
src/tabs/basetabs.py
src/tabs/basetabs.py
+1
-1
src/tabs/muctab.py
src/tabs/muctab.py
+1
-1
src/tabs/privatetab.py
src/tabs/privatetab.py
+0
-1
src/windows.py
src/windows.py
+1
-4
No files found.
plugins/alias.py
View file @
ca0950db
...
...
@@ -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
):
...
...
plugins/exec.py
View file @
ca0950db
...
...
@@ -36,9 +36,7 @@ Usage
"""
from
plugin
import
BasePlugin
import
os
import
common
import
shlex
import
subprocess
class
Plugin
(
BasePlugin
):
...
...
plugins/ping.py
View file @
ca0950db
...
...
@@ -25,7 +25,6 @@ Command
from
plugin
import
BasePlugin
from
roster
import
roster
from
common
import
safeJID
import
common
import
tabs
import
time
...
...
plugins/random_nick.py
View file @
ca0950db
...
...
@@ -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
):
...
...
plugins/replace_word.py
View file @
ca0950db
...
...
@@ -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
):
...
...
plugins/uptime.py
View file @
ca0950db
...
...
@@ -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
...
...
setup.py
View file @
ca0950db
...
...
@@ -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'
],
...
...
src/bookmark.py
View file @
ca0950db
...
...
@@ -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
...
...
src/config.py
View file @
ca0950db
...
...
@@ -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
...
...
src/connection.py
View file @
ca0950db
...
...
@@ -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
...
...
src/contact.py
View file @
ca0950db
...
...
@@ -13,7 +13,6 @@ the roster.
import
logging
log
=
logging
.
getLogger
(
__name__
)
from
sleekxmpp
import
JID
from
common
import
safeJID
from
collections
import
defaultdict
...
...
src/core.py
View file @
ca0950db
...
...
@@ -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
...
...
src/data_forms.py
View file @
ca0950db
...
...
@@ -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
...
...
src/logger.py
View file @
ca0950db
...
...
@@ -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
...
...
src/plugin_manager.py
View file @
ca0950db
...
...
@@ -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
...
...
src/poezio.py
View file @
ca0950db
...
...
@@ -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
...
...
src/pubsub.py
View file @
ca0950db
...
...
@@ -20,7 +20,7 @@ import atom_parser
from
config
import
config
from
datetime
import
datetime
from
sleekxmpp.xmlstream
import
E
lementBase
,
E
T
from
sleekxmpp.xmlstream
import
ET
ATOM_XMLNS
=
"http://www.w3.org/2005/Atom"
...
...
src/tabs/basetabs.py
View file @
ca0950db
...
...
@@ -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
...
...
src/tabs/muctab.py
View file @
ca0950db
...
...
@@ -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
...
...
src/tabs/privatetab.py
View file @
ca0950db
...
...
@@ -19,7 +19,6 @@ import curses
from
.
import
ChatTab
,
MucTab
,
Tab
import
common
import
fixes
import
windows
import
xhtml
...
...
src/windows.py
View file @
ca0950db
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment