remove unnecessary dependencies, appease pylint some more

This commit is contained in:
Chris Jones 2009-08-11 00:22:55 +01:00
parent 0953fca37b
commit eb99ed2c92
1 changed files with 4 additions and 6 deletions

View File

@ -3,8 +3,7 @@
# GPL v2 only # GPL v2 only
"""terminator.py - class for the master Terminator singleton""" """terminator.py - class for the master Terminator singleton"""
from util import dbg, err from terminal import Terminal
from version import APP_NAME, APP_VERSION
class _Terminator(object): class _Terminator(object):
"""master object for the application""" """master object for the application"""
@ -43,7 +42,7 @@ class _Terminator(object):
save = False save = False
if terminal.group == group: if terminal.group == group:
save = True save = True
break; break
if not save: if not save:
todestroy.append(group) todestroy.append(group)
@ -51,10 +50,9 @@ class _Terminator(object):
for group in todestroy: for group in todestroy:
self.groups.remove(group) self.groups.remove(group)
TERMINATOR = _Terminator()
_terminator = _Terminator()
def Terminator(): def Terminator():
"""Return the instance""" """Return the instance"""
return(_terminator) return(TERMINATOR)
# vim: set expandtab ts=4 sw=4: # vim: set expandtab ts=4 sw=4: