rename utils module into shell

Since utils is ambiguous, we want to give the module a more
clear role.
This commit is contained in:
clowwindy 2015-02-10 17:26:10 +08:00
parent cb7062e1c1
commit d774286dc0
8 changed files with 27 additions and 27 deletions

View file

@ -28,7 +28,7 @@ import errno
import logging
from collections import defaultdict
from shadowsocks import utils
from shadowsocks import shell
__all__ = ['EventLoop', 'POLL_NULL', 'POLL_IN', 'POLL_OUT', 'POLL_ERR',
@ -225,7 +225,7 @@ class EventLoop(object):
try:
handler(events)
except (OSError, IOError) as e:
utils.print_exception(e)
shell.print_exception(e)
if self._handlers_to_remove:
for handler in self._handlers_to_remove:
self._handlers.remove(handler)