From: Hans M. <han...@gm...> - 2008-10-25 19:49:03
|
Author: hmeine Date: Sat Oct 25 15:48:51 2008 New Revision: 3645 Log: clean up imports (now that Dischi used pyflakes on beacon, I don't want to have this lying around uncommitted any longer) Modified: trunk/base/src/distribution/core.py trunk/base/src/distribution/svn2log.py trunk/base/src/distribution/xmlconfig.py trunk/base/src/input/stdin.py trunk/base/src/notifier/async.py trunk/base/src/notifier/callback.py trunk/base/src/notifier/coroutine.py trunk/base/src/notifier/popen.py trunk/base/src/notifier/sockets.py trunk/base/src/notifier/thread.py trunk/base/src/notifier/timer.py trunk/base/src/rpc.py trunk/base/src/weakref.py trunk/base/test/config.py trunk/base/test/config2.py trunk/base/test/decorator.py trunk/base/test/kaa_in_twisted.py trunk/base/test/twisted_in_kaa.py Modified: trunk/base/src/distribution/core.py ============================================================================== --- trunk/base/src/distribution/core.py (original) +++ trunk/base/src/distribution/core.py Sat Oct 25 15:48:51 2008 @@ -31,9 +31,6 @@ # python imports import os import sys -import math -import stat -import re import tempfile import time import distutils.core Modified: trunk/base/src/distribution/svn2log.py ============================================================================== --- trunk/base/src/distribution/svn2log.py (original) +++ trunk/base/src/distribution/svn2log.py Sat Oct 25 15:48:51 2008 @@ -29,7 +29,6 @@ # ----------------------------------------------------------------------------- # python imports -import sys import os import textwrap import popen2 Modified: trunk/base/src/distribution/xmlconfig.py ============================================================================== --- trunk/base/src/distribution/xmlconfig.py (original) +++ trunk/base/src/distribution/xmlconfig.py Sat Oct 25 15:48:51 2008 @@ -31,7 +31,6 @@ __all__ = [ 'convert' ] # python imports -import sys import pprint # use minidom because it is part of the python distribution. Modified: trunk/base/src/input/stdin.py ============================================================================== --- trunk/base/src/input/stdin.py (original) +++ trunk/base/src/input/stdin.py Sat Oct 25 15:48:51 2008 @@ -33,7 +33,6 @@ # python imports import sys -import tty import termios import os import atexit Modified: trunk/base/src/notifier/async.py ============================================================================== --- trunk/base/src/notifier/async.py (original) +++ trunk/base/src/notifier/async.py Sat Oct 25 15:48:51 2008 @@ -41,7 +41,6 @@ import time import _weakref import threading -import types # kaa.notifier imports from callback import Callback Modified: trunk/base/src/notifier/callback.py ============================================================================== --- trunk/base/src/notifier/callback.py (original) +++ trunk/base/src/notifier/callback.py Sat Oct 25 15:48:51 2008 @@ -35,7 +35,6 @@ # Python imports import _weakref import types -import sys import logging import atexit Modified: trunk/base/src/notifier/coroutine.py ============================================================================== --- trunk/base/src/notifier/coroutine.py (original) +++ trunk/base/src/notifier/coroutine.py Sat Oct 25 15:48:51 2008 @@ -60,9 +60,8 @@ # kaa.notifier imports from kaa.utils import wraps, DecoratorDataStore -from signals import Signal from timer import Timer -from async import InProgress, inprogress +from async import InProgress # get logging object log = logging.getLogger('notifier') Modified: trunk/base/src/notifier/popen.py ============================================================================== --- trunk/base/src/notifier/popen.py (original) +++ trunk/base/src/notifier/popen.py Sat Oct 25 15:48:51 2008 @@ -48,6 +48,7 @@ # python imports import os +import sys import fcntl import popen2 import glob Modified: trunk/base/src/notifier/sockets.py ============================================================================== --- trunk/base/src/notifier/sockets.py (original) +++ trunk/base/src/notifier/sockets.py Sat Oct 25 15:48:51 2008 @@ -39,12 +39,11 @@ import logging import nf_wrapper as notifier -from callback import Callback, WeakCallback +from callback import WeakCallback from signals import Signals, Signal -from thread import MainThreadCallback, ThreadCallback, is_mainthread, threaded, MAINTHREAD +from thread import MainThreadCallback, is_mainthread, threaded from async import InProgress, inprogress from kaa.utils import property -from timer import OneShotTimer, timed, POLICY_ONCE from kaa.tmpfile import tempfile # get logging object Modified: trunk/base/src/notifier/thread.py ============================================================================== --- trunk/base/src/notifier/thread.py (original) +++ trunk/base/src/notifier/thread.py Sat Oct 25 15:48:51 2008 @@ -63,7 +63,6 @@ # notifier imports import nf_wrapper as notifier from callback import Callback -from signals import Signal from async import InProgress from kaa.utils import wraps, DecoratorDataStore Modified: trunk/base/src/notifier/timer.py ============================================================================== --- trunk/base/src/notifier/timer.py (original) +++ trunk/base/src/notifier/timer.py Sat Oct 25 15:48:51 2008 @@ -75,7 +75,7 @@ subsequent calls will be discarded. """ if not policy in (POLICY_MANY, POLICY_ONCE, POLICY_RESTART): - raise RunTimeError('Invalid @kaa.timed policy %s' % policy) + raise RuntimeError('Invalid @kaa.timed policy %s' % policy) def decorator(func): @wraps(func) Modified: trunk/base/src/rpc.py ============================================================================== --- trunk/base/src/rpc.py (original) +++ trunk/base/src/rpc.py Sat Oct 25 15:48:51 2008 @@ -80,9 +80,7 @@ # python imports import types import socket -import errno import logging -import os import cPickle import pickle import struct Modified: trunk/base/src/weakref.py ============================================================================== --- trunk/base/src/weakref.py (original) +++ trunk/base/src/weakref.py Sat Oct 25 15:48:51 2008 @@ -35,7 +35,6 @@ # python imports from _weakref import ref -import types class NoneProxy(object): Modified: trunk/base/test/config.py ============================================================================== --- trunk/base/test/config.py (original) +++ trunk/base/test/config.py Sat Oct 25 15:48:51 2008 @@ -1,6 +1,6 @@ # -*- coding: iso-8859-1 -*- -from kaa.config import Var, Group, Dict, List, Config, VarProxy +from kaa.config import Var, Group, Dict, List, Config def config_change_cb(name, oldval, newval): Modified: trunk/base/test/config2.py ============================================================================== --- trunk/base/test/config2.py (original) +++ trunk/base/test/config2.py Sat Oct 25 15:48:51 2008 @@ -1,6 +1,6 @@ # -*- coding: iso-8859-1 -*- -from kaa.config import Var, Group, Dict, List, Config, VarProxy +from kaa.config import Var, Group, Dict, Config config = Config(desc='mplayer configuration', schema=[ Modified: trunk/base/test/decorator.py ============================================================================== --- trunk/base/test/decorator.py (original) +++ trunk/base/test/decorator.py Sat Oct 25 15:48:51 2008 @@ -1,4 +1,4 @@ -from kaa import timed, Timer, OneShotTimer, main, \ +from kaa import timed, OneShotTimer, main, \ is_mainthread, threaded, MAINTHREAD, POLICY_ONCE, POLICY_RESTART Modified: trunk/base/test/kaa_in_twisted.py ============================================================================== --- trunk/base/test/kaa_in_twisted.py (original) +++ trunk/base/test/kaa_in_twisted.py Sat Oct 25 15:48:51 2008 @@ -1,4 +1,3 @@ -import sys import kaa # method can be either Modified: trunk/base/test/twisted_in_kaa.py ============================================================================== --- trunk/base/test/twisted_in_kaa.py (original) +++ trunk/base/test/twisted_in_kaa.py Sat Oct 25 15:48:51 2008 @@ -1,4 +1,4 @@ -import sys +# import sys import kaa # install special kaa reactor |