Clear up some import errors found by pyflakes
This commit is contained in:
parent
75b5cd11cf
commit
949dc81574
|
@ -16,5 +16,3 @@
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
"""Terminator by Chris Jones <cmsj@tenshu.net>"""
|
"""Terminator by Chris Jones <cmsj@tenshu.net>"""
|
||||||
|
|
||||||
from version import APP_NAME, APP_VERSION
|
|
||||||
|
|
|
@ -55,7 +55,6 @@ from copy import copy
|
||||||
from configobj.configobj import ConfigObj, flatten_errors
|
from configobj.configobj import ConfigObj, flatten_errors
|
||||||
from configobj.validate import Validator
|
from configobj.validate import Validator
|
||||||
from borg import Borg
|
from borg import Borg
|
||||||
from factory import Factory
|
|
||||||
from util import dbg, err, DEBUG, get_config_dir, dict_diff
|
from util import dbg, err, DEBUG, get_config_dir, dict_diff
|
||||||
|
|
||||||
DEFAULTS = {
|
DEFAULTS = {
|
||||||
|
@ -481,7 +480,6 @@ class ConfigBase(Borg):
|
||||||
return(True)
|
return(True)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
import sys
|
|
||||||
import doctest
|
import doctest
|
||||||
(failed, attempted) = doctest.testmod()
|
(failed, attempted) = doctest.testmod()
|
||||||
print "%d/%d tests failed" % (failed, attempted)
|
print "%d/%d tests failed" % (failed, attempted)
|
||||||
|
|
|
@ -136,7 +136,6 @@ class MenuItem(Plugin):
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
import sys
|
|
||||||
import doctest
|
import doctest
|
||||||
sys.path.insert(0, 'plugins')
|
sys.path.insert(0, 'plugins')
|
||||||
(failed, attempted) = doctest.testmod()
|
(failed, attempted) = doctest.testmod()
|
||||||
|
|
|
@ -4,10 +4,9 @@ import os
|
||||||
import gtk
|
import gtk
|
||||||
import gobject
|
import gobject
|
||||||
|
|
||||||
from util import dbg, err
|
from util import dbg
|
||||||
import config
|
import config
|
||||||
from keybindings import Keybindings, KeymapError
|
from keybindings import Keybindings, KeymapError
|
||||||
from version import APP_NAME, APP_VERSION
|
|
||||||
from translation import _
|
from translation import _
|
||||||
from newterminator import Terminator
|
from newterminator import Terminator
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,6 @@ import gobject
|
||||||
|
|
||||||
from translation import _
|
from translation import _
|
||||||
from config import Config
|
from config import Config
|
||||||
from util import dbg
|
|
||||||
|
|
||||||
# pylint: disable-msg=R0904
|
# pylint: disable-msg=R0904
|
||||||
class Searchbar(gtk.HBox):
|
class Searchbar(gtk.HBox):
|
||||||
|
|
|
@ -10,10 +10,10 @@ pygtk.require('2.0')
|
||||||
import gtk
|
import gtk
|
||||||
import gobject
|
import gobject
|
||||||
import pango
|
import pango
|
||||||
import re
|
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import urllib
|
||||||
|
|
||||||
from util import dbg, err, gerr, widget_pixbuf, get_top_window
|
from util import dbg, err, gerr, get_top_window
|
||||||
import util
|
import util
|
||||||
from config import Config
|
from config import Config
|
||||||
from cwd import get_default_cwd
|
from cwd import get_default_cwd
|
||||||
|
|
Loading…
Reference in New Issue